Skip to content

Commit 9d126ce

Browse files
committed
Don't cancel other jobs from the 3.12 job failing
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.
1 parent d22ac20 commit 9d126ce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pythonpackage.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
strategy:
1717
matrix:
1818
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
19+
include:
20+
- experimental: false
21+
- python-version: "3.12"
22+
experimental: true
23+
continue-on-error: ${{ matrix.experimental }}
1924

2025
steps:
2126
- uses: actions/checkout@v4
@@ -25,7 +30,7 @@ jobs:
2530
uses: actions/setup-python@v4
2631
with:
2732
python-version: ${{ matrix.python-version }}
28-
allow-prereleases: true
33+
allow-prereleases: ${{ matrix.experimental }}
2934
- name: Install project and dependencies
3035
run: |
3136
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)