From aea8179d7f403719b8ea25bb5b8037015d6a291d Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Wed, 21 Jun 2023 23:25:50 +0100 Subject: [PATCH] publish only if all other jobs have succeeded --- .github/workflows/continuous-integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index f31483e7a..7aa6af29b 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -93,7 +93,7 @@ jobs: uses: codecov/codecov-action@v3 test-conda: - needs: test-pip + needs: pre-commit strategy: matrix: os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] @@ -168,7 +168,7 @@ jobs: publish: name: Publish to PyPi - needs: [test-pip, test-conda, build] + needs: [codeql, test-pip, test-conda, build] if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest environment: