diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dfa9ac41..449f92ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,11 @@ on: tags: - '**' pull_request: - types: [opened, synchronize] + types: [opened, synchronize, reopened, ready_for_review] jobs: lint: + if: github.event.pull_request.draft != true runs-on: ubuntu-latest steps: @@ -58,6 +59,7 @@ jobs: - os: macos-latest python-version: '3.9' + if: github.event.pull_request.draft != true runs-on: ${{ matrix.os }} env: @@ -100,6 +102,7 @@ jobs: env_vars: PYTHON,OS npm-build: + if: github.event.pull_request.draft != true runs-on: ubuntu-latest steps: @@ -114,7 +117,7 @@ jobs: - run: tree src check: # This job does nothing and is only used for the branch protection - if: always() + if: github.event.pull_request.draft != true needs: [lint, test, npm-build] runs-on: ubuntu-latest @@ -127,7 +130,7 @@ jobs: release: needs: [check] - if: "success() && startsWith(github.ref, 'refs/tags/')" + if: "success() && startsWith(github.ref, 'refs/tags/') && github.event.pull_request.draft != true" runs-on: ubuntu-latest environment: release