Skip to content

Commit 651c05a

Browse files
committed
Remove nox. Use poetry env.
1 parent 3cdd163 commit 651c05a

File tree

3 files changed

+7
-123
lines changed

3 files changed

+7
-123
lines changed

.github/workflows/python.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ jobs:
2727

2828
- name: Install dependencies
2929
run: |
30-
poetry add python==${{ matrix.python-version }}
31-
poetry add django==${{ matrix.django-version }}
3230
poetry install
3331
3432
- name: ruff check
@@ -64,5 +62,8 @@ jobs:
6462
- name: Install dependencies
6563
run: poetry install -E minify
6664

67-
- name: Run all tests
68-
run: poetry run nox
65+
- name: Fast tests
66+
run: poetry run pytest -m 'not slow'
67+
68+
- name: Slow tests
69+
run: poetry run pytest -m 'slow'

poetry.lock

Lines changed: 1 addition & 117 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ django-mock-queries = "^2.1.5"
5151
pydantic = "^1"
5252
pywatchman = "*"
5353
django-redis = "^4.12.1"
54-
nox = "*"
5554
poethepoet = "*"
5655
coverage = {extras = ["toml"], version = "*"}
5756
pytest-cov = "*"
@@ -138,7 +137,7 @@ mm = { cmd = "example/manage.py makemigrations", help = "Make migrations for the
138137
mi = { cmd = "example/manage.py migrate", help = "Migrate the example project" }
139138
md = ["mm", "mi"]
140139
m = { cmd = "example/manage.py", help = "manage.py for the example project" }
141-
tp = { cmd = "nox -r", help = "Run the entire Python test suite with nox" }
140+
tp = { cmd = "act -q -j test -W .github/workflows/python.yml", help = "Run the Python matrix test suite" }
142141
tj = { cmd = "npm run-script test", help = "Run the JavaScript unit tests" }
143142
ta = ["tp", "tj"]
144143
jb = { cmd = "npm run build", help = "Build the JavaScript library" }

0 commit comments

Comments
 (0)