From ffacf84dc76fee329a30f8a44eedc50a0c214aa3 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sat, 25 Jun 2022 21:49:56 +0100 Subject: [PATCH] Fix CI --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a15ec8..282a421 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ on: jobs: skip_duplicate: + name: Skip if duplicate run runs-on: ubuntu-latest outputs: should_skip: ${{ steps.skip_check.outputs.should_skip }} @@ -44,6 +45,7 @@ jobs: uses: github/codeql-action/analyze@v2 lint: + name: Lint needs: skip_duplicate if: ${{ needs.skip_duplicate.outputs.should_skip == 'false' }} runs-on: ubuntu-latest @@ -60,6 +62,7 @@ jobs: run: pylint --recursive=yes . test: + name: Run unit tests needs: skip_duplicate if: ${{ needs.skip_duplicate.outputs.should_skip == 'false' }} runs-on: ubuntu-latest @@ -81,11 +84,10 @@ jobs: uses: codecov/codecov-action@v3 build: + name: Build needs: - - skip_duplicate - lint - test - if: ${{ needs.skip_duplicate.outputs.should_skip == 'false' }} runs-on: ubuntu-latest steps: - name: Check out repository code @@ -107,12 +109,12 @@ jobs: path: dist/ publish: - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + name: Publish needs: build + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} steps: - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} - \ No newline at end of file