Skip to content

Commit

Permalink
fix: Reduce status checks of ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Jan 11, 2024
1 parent d832d94 commit 6e7d75e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,17 @@ jobs:

- name: Run pytest
run: pytest -n auto --import-mode=append

# NOTE: In GitHub repository settings, the "Require status checks to pass
# before merging" branch protection rule ensures that commits are only merged
# from branches where specific status checks have passed. These checks are
# specified manually as a list of workflow job names. Thus we use this extra
# job to signal whether all CI checks have passed.
ci:
name: CI status checks
runs-on: ubuntu-latest
needs: build
if: always()
steps:
- name: Check whether all jobs pass
run: echo '${{ toJson(needs) }}' | jq -e 'all(.result == "success")'

0 comments on commit 6e7d75e

Please sign in to comment.