Skip to content

Commit 91d28d1

Browse files
committed
Add python versions 3.11 and 3.12 for tests
1 parent 32d270d commit 91d28d1

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

.github/workflows/run-tests.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,31 @@
44
name: Python package
55

66
on:
7-
push:
8-
branches: [ main ]
9-
pull_request:
10-
branches: [ main ]
7+
push:
8+
branches: [main]
9+
pull_request:
10+
branches: [main]
1111

1212
jobs:
13-
build:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1419

15-
runs-on: ubuntu-latest
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
python-version: ["3.8", "3.9", "3.10"]
20-
21-
steps:
22-
- uses: actions/checkout@v2
23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
python -m pip install flit~=3.0
31-
flit install
32-
- name: Test with unittest
33-
run: |
34-
python -m unittest
35-
working-directory: tests
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
python -m pip install flit~=3.0
30+
flit install
31+
- name: Test with unittest
32+
run: |
33+
python -m unittest
34+
working-directory: tests

0 commit comments

Comments
 (0)