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