Skip to content

Commit

Permalink
Update GHA with a "container" status check
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Jan 26, 2025
1 parent a80f2f0 commit 05fbae9
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Build wheel, release and publish on new tag
on: [push, pull_request]

jobs:
lint:
name: run Ruff
runs-on: ubuntu-latest
steps:
- uses: astral-sh/ruff-action@v3

build:
name: Build and test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -56,10 +62,21 @@ jobs:
with:
path: dist/*.tar.gz

status_check:
name: All Checks
needs: [lint, build]
runs-on: ubuntu-latest
if: always()
steps:
- name: Check status
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1


release_artifacts:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
name: Release repaired and tested wheels
needs: build
needs: [status_check, make_sdist]
runs-on: ubuntu-latest
environment: release
permissions:
Expand Down

0 comments on commit 05fbae9

Please sign in to comment.