Skip to content

Commit 564dd7f

Browse files
committed
ops: update python tests ci
1 parent 3d28cc5 commit 564dd7f

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

.github/workflows/run-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
uses: astral-sh/setup-uv@v5
2626

2727
- name: Install dependencies
28-
run: |
29-
uv sync --frozen
28+
run: uv sync --frozen
3029

3130
- name: Run Django tests
3231
env:
33-
PYTHONPATH: ${{ github.workspace }}/reportdb
32+
PYTHONPATH: ${{ github.workspace }}
33+
DJANGO_SETTINGS_MODULE: conf.settings
3434
run: |
3535
uv run reportdb/manage.py test
3636

conf/__init__.py

Whitespace-only changes.

conf/settings.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
"""Django settings for reportdb project.
2-
3-
Generated by 'django-admin startproject' using Django 4.2.1.
4-
5-
For more information on this file, see
6-
https://docs.djangoproject.com/en/4.2/topics/settings/
7-
8-
For the full list of settings and their values, see
9-
https://docs.djangoproject.com/en/4.2/ref/settings/
10-
"""
11-
121
import os
132
import socket
143
from pathlib import Path
@@ -64,8 +53,7 @@
6453
"debug_toolbar.middleware.DebugToolbarMiddleware",
6554
]
6655

67-
# noinspection PyUnresolvedReferences
68-
ROOT_URLCONF = "reportdb.urls"
56+
ROOT_URLCONF = "conf.urls"
6957

7058
TEMPLATES = [
7159
{
@@ -84,7 +72,7 @@
8472
},
8573
]
8674

87-
WSGI_APPLICATION = "reportdb.wsgi.application"
75+
WSGI_APPLICATION = "conf.wsgi.application"
8876

8977

9078
# Database

reportdb/manage.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/usr/bin/env python
22
"""Django's command-line utility for administrative tasks."""
33

4-
import os
54
import sys
65

76

87
def main() -> None:
98
"""Run administrative tasks."""
10-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "reportdb.settings")
119
try:
1210
from django.core.management import execute_from_command_line
1311
except ImportError as exc:

0 commit comments

Comments
 (0)