Skip to content

Commit 0eff37b

Browse files
effigiescoalsont
authored andcommitted
CI: Add Python 3.12 tests with native setup
1 parent 8313136 commit 0eff37b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,25 @@ jobs:
2323
test:
2424
runs-on: ubuntu-latest
2525
strategy:
26+
fail-fast: false
2627
matrix:
27-
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
28+
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
2829
requires: ["", "requirements.txt"]
2930

3031
steps:
3132
- name: Checkout repo
3233
uses: actions/checkout@v3
33-
- name: Set up Python ${{ matrix.python-version }}
34+
- name: Set up Python ${{ matrix.python-version }} (native)
35+
uses: actions/setup-python@v4
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
allow-prereleases: true
39+
if: matrix.python-version > 3.8
40+
- name: Set up Python ${{ matrix.python-version }} (miniconda)
3441
uses: conda-incubator/setup-miniconda@v2
3542
with:
3643
python-version: ${{ matrix.python-version }}
44+
if: matrix.python-version <= 3.8
3745
- name: Check environment
3846
run: |
3947
which python

0 commit comments

Comments
 (0)