Skip to content

Commit

Permalink
Merge pull request #1271 from jakob-keller/alls-green
Browse files Browse the repository at this point in the history
Integrate `alls-green` in CI/CD
  • Loading branch information
webknjaz authored Jan 19, 2025
2 parents fb860e8 + 2c2f499 commit bdfbfd5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,25 @@ jobs:
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)

check: # This job does nothing and is only used for the branch protection
if: always()
needs:
- build
- test
runs-on: ubuntu-24.04
timeout-minutes: 5

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

pypi-publish:
name: Publish Python 🐍 distribution 📦 to PyPI
if: github.ref_type == 'tag' # only publish on tag pushes
needs:
- build
- test
- check
runs-on: ubuntu-24.04
environment:
name: pypi
Expand Down

0 comments on commit bdfbfd5

Please sign in to comment.