Skip to content

Commit 2c4480f

Browse files
shuffle around some variables
1 parent 229a4b4 commit 2c4480f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

noxfile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,14 @@ def mypy(session):
117117

118118
@nox.session
119119
def gha_matrix(session):
120-
sessions_json = session.run("nox", "-l", "--json", silent=True)
121-
sessions = json.loads(sessions_json)
120+
sessions = session.run("nox", "-l", "--json", silent=True)
122121
matrix = {
123122
"include": [
124123
{
125124
"python-version": session["python"],
126125
"django-version": session["call_spec"]["django"],
127126
}
128-
for session in sessions
127+
for session in json.loads(sessions)
129128
if session["name"] == "tests"
130129
]
131130
}

0 commit comments

Comments
 (0)