File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -125,16 +125,14 @@ def lint(session):
125125@nox .session
126126def 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
You can’t perform that action at this time.
0 commit comments