Skip to content

Commit 9f342e9

Browse files
fix
1 parent bdbfee4 commit 9f342e9

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ jobs:
3939
needs: generate-matrix
4040
strategy:
4141
fail-fast: false
42-
matrix:
43-
os:
44-
- macos-latest
45-
- ubuntu-latest
46-
- windows-latest
47-
include: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
42+
matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
4843
steps:
4944
- uses: actions/checkout@v4
5045

@@ -56,4 +51,4 @@ jobs:
5651

5752
- name: Run tests
5853
run: |
59-
uv run nox --session "tests(python='${{ matrix.python-version }}', django='${{ matrix.django-version }}')" -- --slow
54+
uv run nox --session "tests(python='${{ matrix.python-version }}', django='${{ matrix.django-version }}')"

noxfile.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,17 @@ def lint(session):
117117
@nox.session
118118
def gha_matrix(session):
119119
sessions = session.run("nox", "-l", "--json", silent=True)
120-
matrix = [
121-
{
122-
"python-version": session["python"],
123-
"django-version": session["call_spec"]["django"],
124-
}
125-
for session in json.loads(sessions)
126-
if session["name"] == "tests"
127-
]
120+
matrix = {
121+
"include": [
122+
{
123+
"django-version": session["call_spec"]["django"],
124+
"os": os,
125+
"python-version": session["python"],
126+
}
127+
for session in json.loads(sessions)
128+
for os in ["macos-latest", "ubuntu-latest", "windows-latest"]
129+
if session["name"] == "tests"
130+
]
131+
}
128132
with Path(os.environ["GITHUB_OUTPUT"]).open("a") as fh:
129133
print(f"matrix={matrix}", file=fh)

0 commit comments

Comments
 (0)