Skip to content

Commit 6f89d21

Browse files
let's try this
1 parent 291a998 commit 6f89d21

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
needs: generate-matrix
4040
strategy:
4141
fail-fast: false
42-
matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
42+
matrix:
43+
django-version: ${{ fromJSON(needs.generate-matrix.outputs.matrix.django-version) }}
44+
python-version: ${{ fromJSON(needs.generate-matrix.outputs.matrix.python-version) }}
4345
steps:
4446
- uses: actions/checkout@v4
4547

noxfile.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,14 @@ def lint(session):
125125
@nox.session
126126
def gha_matrix(session):
127127
sessions = session.run("nox", "-l", "--json", silent=True)
128-
matrix = {
129-
"include": [
130-
{
131-
"django-version": session["call_spec"]["django"],
132-
"python-version": session["python"],
133-
}
134-
for session in json.loads(sessions)
135-
if session["name"] == "tests"
136-
]
137-
}
128+
matrix = [
129+
{
130+
"django-version": session["call_spec"]["django"],
131+
"python-version": session["python"],
132+
}
133+
for session in json.loads(sessions)
134+
if session["name"] == "tests"
135+
]
138136
with Path(os.environ["GITHUB_OUTPUT"]).open("a") as fh:
139137
print(f"matrix={matrix}", file=fh)
140138

0 commit comments

Comments
 (0)