Skip to content

Commit c596555

Browse files
make noxfile script
1 parent 9f342e9 commit c596555

File tree

5 files changed

+16
-132
lines changed

5 files changed

+16
-132
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131

3232
- id: set-matrix
3333
run: |
34-
uv run nox --session "gha_matrix"
34+
uv run nox --session gha_matrix
3535
3636
test:
37-
name: Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }} (${{ matrix.os }})
38-
runs-on: ${{ matrix.os }}
37+
name: Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }} (${{ runs-on }})
38+
runs-on: ubuntu-latest
3939
needs: generate-matrix
4040
strategy:
4141
fail-fast: false

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ default:
1010

1111
[private]
1212
nox SESSION *ARGS:
13-
uv run nox --session "{{ SESSION }}" -- "{{ ARGS }}"
13+
uv run noxfile.py --session "{{ SESSION }}" -- "{{ ARGS }}"
1414

1515
bumpver *ARGS:
1616
uv run --with bumpver bumpver {{ ARGS }}

noxfile.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#!/usr/bin/env -S uv run --quiet
2+
# /// script
3+
# requires-python = ">=3.13"
4+
# dependencies = [
5+
# "nox",
6+
# ]
7+
# ///
8+
19
from __future__ import annotations
210

311
import json
@@ -121,13 +129,15 @@ def gha_matrix(session):
121129
"include": [
122130
{
123131
"django-version": session["call_spec"]["django"],
124-
"os": os,
125132
"python-version": session["python"],
126133
}
127134
for session in json.loads(sessions)
128-
for os in ["macos-latest", "ubuntu-latest", "windows-latest"]
129135
if session["name"] == "tests"
130136
]
131137
}
132138
with Path(os.environ["GITHUB_OUTPUT"]).open("a") as fh:
133139
print(f"matrix={matrix}", file=fh)
140+
141+
142+
if __name__ == "__main__":
143+
nox.main()

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ build-backend = "maturin"
66
dev = [
77
"django-stubs>=5.1.1",
88
"maturin>=1.7.8",
9-
"nox[uv]>=2025.2.9",
109
"ruff>=0.8.2",
1110
]
1211
docs = [

uv.lock

Lines changed: 0 additions & 125 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)