Skip to content

Commit

Permalink
Continue matrix on error
Browse files Browse the repository at this point in the history
This attempts to ensure that the whole matrix isn't cancelled when
a single job fails.

Based on https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#handling-failures
  • Loading branch information
lunkwill42 committed Dec 15, 2023
1 parent 237aac4 commit b4767a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ jobs:
build-and-test:
name: "Test on Python ${{ matrix.python-version}}"
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}

strategy:
max-parallel: 4
fail-fast: true
matrix:
python-version: [3.7, 3.8, 3.9, 3.11]
experimental: [true]

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit b4767a8

Please sign in to comment.