Skip to content

Commit 2215339

Browse files
committed
improve python matrix
1 parent 9d49a23 commit 2215339

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,32 @@ on:
99
types: [opened, synchronize, reopened]
1010

1111
jobs:
12-
build:
13-
12+
build-compat:
1413
runs-on: ubuntu-20.04
1514
strategy:
1615
fail-fast: false
1716
matrix:
18-
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
19-
17+
python-version: ["3.5", "3.6", "3.7"]
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/[email protected]
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28+
if [ -f requirements-t-pre37.txt ]; then pip install -r requirements-t-pre37.txt; fi
29+
- name: Test with nosetest
30+
run: |
31+
./scripts/testing.sh
32+
build-latest:
33+
runs-on: ubuntu-22.04
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2038
steps:
2139
- uses: actions/checkout@v4
2240
- name: Set up Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)