Skip to content

Commit ae2fd26

Browse files
Upgrade coactions/dynamic-matrix to v3 (#211)
Co-authored-by: Sorin Sbarnea <[email protected]>
1 parent 4729950 commit ae2fd26

File tree

2 files changed

+30
-14
lines changed

2 files changed

+30
-14
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Determine matrix
1313
id: generate_matrix
14-
uses: coactions/dynamic-matrix@v2
14+
uses: coactions/dynamic-matrix@v3
1515
with:
1616
min_python: "3.12"
1717
max_python: "3.12"
@@ -42,9 +42,19 @@ jobs:
4242
run: |
4343
python3 -m pip install 'tox>=4.0.0'
4444
45-
- name: Run tox -e ${{ matrix.passed_name }}
46-
run: |
47-
${{ matrix.PREFIX }} tox -e ${{ matrix.passed_name }}
45+
- run: ${{ matrix.command }}
46+
47+
- run: ${{ matrix.command2 }}
48+
if: ${{ matrix.command2 }}
49+
50+
- run: ${{ matrix.command3 }}
51+
if: ${{ matrix.command3 }}
52+
53+
- run: ${{ matrix.command4 }}
54+
if: ${{ matrix.command4 }}
55+
56+
- run: ${{ matrix.command5 }}
57+
if: ${{ matrix.command5 }}
4858

4959
check: # This job does nothing and is only used for the branch protection
5060
if: always()

.github/workflows/tox.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
steps:
4444
- name: Determine matrix
4545
id: generate_matrix
46-
uses: coactions/dynamic-matrix@v2
46+
uses: coactions/dynamic-matrix@v3
4747
with:
4848
min_python: ${{ inputs.min_python }}
4949
max_python: ${{ inputs.max_python }}
@@ -76,11 +76,11 @@ jobs:
7676

7777
- name: Set pre-commit cache
7878
uses: actions/cache@v4
79-
if: ${{ matrix.passed_name == 'lint' }}
79+
if: ${{ matrix.name == 'lint' }}
8080
with:
8181
path: |
8282
~/.cache/pre-commit
83-
key: pre-commit-${{ matrix.name || matrix.passed_name }}-${{ hashFiles('.pre-commit-config.yaml') }}
83+
key: pre-commit-${{ matrix.name }}-${{ hashFiles('.pre-commit-config.yaml') }}
8484

8585
- name: Set up Python ${{ matrix.python_version || '3.12' }}
8686
if: "!contains(matrix.shell, 'wsl')"
@@ -97,13 +97,19 @@ jobs:
9797
- name: Log installed dists
9898
run: python3 -m pip freeze --all
9999

100-
- name: Initialize tox envs ${{ matrix.passed_name }}
101-
run: python3 -m tox --notest --skip-missing-interpreters false -vv -e ${{ matrix.passed_name }}
102-
timeout-minutes: 5 # average is under 1, but macos can be over 3
100+
- run: ${{ matrix.command }}
103101

104-
# sequential run improves browsing experience (almost no speed impact)
105-
- name: tox -e ${{ matrix.passed_name }}
106-
run: python3 -m tox -e ${{ matrix.passed_name }}
102+
- run: ${{ matrix.command2 }}
103+
if: ${{ matrix.command2 }}
104+
105+
- run: ${{ matrix.command3 }}
106+
if: ${{ matrix.command3 }}
107+
108+
- run: ${{ matrix.command4 }}
109+
if: ${{ matrix.command4 }}
110+
111+
- run: ${{ matrix.command5 }}
112+
if: ${{ matrix.command5 }}
107113

108114
- name: Archive logs and coverage data
109115
uses: actions/upload-artifact@v4
@@ -169,7 +175,7 @@ jobs:
169175
- name: Upload coverage data
170176
uses: codecov/codecov-action@v4
171177
with:
172-
name: ${{ matrix.passed_name }}
178+
name: ${{ matrix.name }}
173179
fail_ci_if_error: true
174180
use_oidc: true
175181

0 commit comments

Comments
 (0)