Skip to content

Commit

Permalink
Don't cancel other jobs from the 3.12 job failing
Browse files Browse the repository at this point in the history
Because 3.12 is still a release candidate and if tests fail for it
then one would always want to know if/how other versions also fail.

This also allows actions/setup-python to install a prerelease for
3.12 only, not for other releases.
  • Loading branch information
EliahKagan committed Sep 11, 2023
1 parent d22ac20 commit 9d126ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- experimental: false
- python-version: "3.12"
experimental: true
continue-on-error: ${{ matrix.experimental }}

steps:
- uses: actions/checkout@v4
Expand All @@ -25,7 +30,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
allow-prereleases: ${{ matrix.experimental }}
- name: Install project and dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 9d126ce

Please sign in to comment.