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 authored and hmpf committed Feb 29, 2024
1 parent ff47d65 commit 02db144
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.10"]
experimental: [true]

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

0 comments on commit 02db144

Please sign in to comment.