diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fd83071..65f326f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: ci +name: CI on: push: @@ -22,8 +22,10 @@ jobs: name: Test, lint, and build everything. runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup nodejs + uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} cache: npm @@ -37,15 +39,18 @@ jobs: uses: snok/install-poetry@v1 with: version: ${{ env.POETRY_VERSION }} - - uses: actions/setup-python@v4 + - name: Setup Python + uses: actions/setup-python@v4 with: python-version: ${{ env.PYTHON_VERSION }} cache: poetry - - working-directory: web + - name: Build web site + working-directory: web run: | npm ci npm run build - - run: | + - name: Lint and test Python code + run: | poetry install poetry run black . --check poetry run mypy . diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 50f43a3..aca82eb 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -22,8 +22,10 @@ jobs: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} steps: - - uses: actions/checkout@v2 - - uses: docker/setup-qemu-action@v1 + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup QEMU + uses: docker/setup-qemu-action@v1 - name: Calculate short SHA run: echo "SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-8)" >>"$GITHUB_ENV" - name: Build container image diff --git a/README.md b/README.md index 893dc9e..ed36364 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Rate My Pulls -[![ci](https://github.com/ananthb/rate-my-pulls/actions/workflows/ci.yaml/badge.svg)](https://github.com/ananthb/rate-my-pulls/actions/workflows/ci.yaml) +[![CI](https://github.com/ananthb/rate-my-pulls/actions/workflows/ci.yaml/badge.svg)](https://github.com/ananthb/rate-my-pulls/actions/workflows/ci.yaml) Tinder for your pull requests.