Skip to content

Commit 083041f

Browse files
authored
Use the test project for smoke testing (#41)
1 parent 80a77aa commit 083041f

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
- name: Build
2424
run: uv build
2525
- name: Smoke test (wheel)
26-
run: uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
26+
run: uv run --isolated --no-project --with dist/*.whl -m tests.project.manage check
2727
- name: Smoke test (source distribution)
28-
run: uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
28+
run: uv run --isolated --no-project --with dist/*.tar.gz -m tests.project.manage check
2929
- name: Publish
3030
run: uv publish

tests/project/manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def main():
7-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
7+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.project.project.settings")
88
try:
99
from django.core.management import execute_from_command_line
1010
except ImportError as exc:

tests/smoke_test.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)