Skip to content

Commit

Permalink
ops: update python tests ci
Browse files Browse the repository at this point in the history
  • Loading branch information
anorthall committed Feb 7, 2025
1 parent 3d28cc5 commit 564dd7f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
uses: astral-sh/setup-uv@v5

- name: Install dependencies
run: |
uv sync --frozen
run: uv sync --frozen

- name: Run Django tests
env:
PYTHONPATH: ${{ github.workspace }}/reportdb
PYTHONPATH: ${{ github.workspace }}
DJANGO_SETTINGS_MODULE: conf.settings
run: |
uv run reportdb/manage.py test
Expand Down
Empty file added conf/__init__.py
Empty file.
16 changes: 2 additions & 14 deletions conf/settings.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
"""Django settings for reportdb project.
Generated by 'django-admin startproject' using Django 4.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.2/ref/settings/
"""

import os
import socket
from pathlib import Path
Expand Down Expand Up @@ -64,8 +53,7 @@
"debug_toolbar.middleware.DebugToolbarMiddleware",
]

# noinspection PyUnresolvedReferences
ROOT_URLCONF = "reportdb.urls"
ROOT_URLCONF = "conf.urls"

TEMPLATES = [
{
Expand All @@ -84,7 +72,7 @@
},
]

WSGI_APPLICATION = "reportdb.wsgi.application"
WSGI_APPLICATION = "conf.wsgi.application"


# Database
Expand Down
2 changes: 0 additions & 2 deletions reportdb/manage.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""

import os
import sys


def main() -> None:
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "reportdb.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down

0 comments on commit 564dd7f

Please sign in to comment.