Skip to content

Commit 86822fa

Browse files
how about this
1 parent c19831c commit 86822fa

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
strategy:
4141
fail-fast: false
4242
matrix:
43-
django-version: ${{ fromJSON(needs.generate-matrix.outputs.matrix.django-version) }}
44-
python-version: ${{ fromJSON(needs.generate-matrix.outputs.matrix.python-version) }}
43+
include: ${{ fromJSON(needs.generate-matrix.outputs.matrix.include) }}
4544
steps:
4645
- uses: actions/checkout@v4
4746

noxfile.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,16 @@ def lint(session):
125125
@nox.session
126126
def gha_matrix(session):
127127
sessions = session.run("nox", "-l", "--json", silent=True)
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-
]
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+
}
136138
with Path(os.environ["GITHUB_OUTPUT"]).open("a") as fh:
137139
print(f"matrix={matrix}", file=fh)
138140

0 commit comments

Comments
 (0)