Skip to content

Commit 1a6e9ae

Browse files
move inputs and matrix to env vars
1 parent 97d373b commit 1a6e9ae

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ jobs:
4646
enable-cache: true
4747

4848
- id: set-matrix
49+
env:
50+
OS: ${{ inputs.os }}
4951
run: |
50-
uv run noxfile.py --session gha_matrix -- "${{ inputs.os }}"
52+
uv run noxfile.py --session gha_matrix -- "${OS}"
5153
5254
test:
5355
name: Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }} (${{ matrix.os }})
@@ -69,8 +71,11 @@ jobs:
6971
enable-cache: true
7072

7173
- name: Run tests
74+
env:
75+
DJANGO_VERSION: ${{ matrix.django-version }}
76+
PYTHON_VERSION: ${{ matrix.python-version }}
7277
run: |
73-
uv run noxfile.py --session "tests(python='${{ matrix.python-version }}', django='${{ matrix.django-version }}')"
78+
uv run noxfile.py --session "tests(python='${PYTHON_VERSION}', django='${DJANGO_VERSION}')"
7479
7580
tests:
7681
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)