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 7bcf689
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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.
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 7bcf689

Please sign in to comment.