Skip to content

Commit d343d34

Browse files
committed
use a matrix again
1 parent 163de4d commit d343d34

File tree

1 file changed

+12
-34
lines changed

1 file changed

+12
-34
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -44,41 +44,19 @@ jobs:
4444
run: |
4545
hatch env run --env test.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix.dependency-set }} run
4646
47-
upstream:
48-
name: py=${{ matrix.python-version }}-upstream
47+
test-upstream-and-min-deps:
48+
name: py=${{ matrix.python-version }}-${{ matrix.dependency-set }}
4949

5050
runs-on: ubuntu-latest
5151
strategy:
5252
matrix:
53-
python-version: ['3.13']
54-
55-
steps:
56-
- uses: actions/checkout@v4
57-
- name: Set up Python
58-
uses: actions/setup-python@v5
59-
with:
60-
python-version: ${{ matrix.python-version }}
61-
cache: 'pip'
62-
- name: Install Hatch
63-
run: |
64-
python -m pip install --upgrade pip
65-
pip install hatch
66-
- name: Set Up Hatch Env
67-
run: |
68-
hatch env create upstream
69-
hatch env run -e upstream list-env
70-
- name: Run Tests
71-
run: |
72-
hatch env run --env upstream run
73-
74-
min_deps:
75-
name: py=${{ matrix.python-version }}-min_deps
76-
77-
runs-on: ubuntu-latest
78-
strategy:
79-
matrix:
80-
python-version: ['3.11']
81-
53+
python-version: ['3.11', "3.13"]
54+
dependency-set: ["upstream", "min_deps"]
55+
exclude:
56+
- python-version: "3.13"
57+
dependency-set: min_deps
58+
- python-version: "3.11"
59+
dependency-set: upstream
8260
steps:
8361
- uses: actions/checkout@v4
8462
- name: Set up Python
@@ -92,8 +70,8 @@ jobs:
9270
pip install hatch
9371
- name: Set Up Hatch Env
9472
run: |
95-
hatch env create min_deps
96-
hatch env run -e min_deps list-env
73+
hatch env create ${{ matrix.dependency-set }}
74+
hatch env run -e ${{ matrix.dependency-set }} list-env
9775
- name: Run Tests
9876
run: |
99-
hatch env run --env min_deps run
77+
hatch env run --env ${{ matrix.dependency-set }} run

0 commit comments

Comments
 (0)