Skip to content

Commit

Permalink
debugging not working trying something different
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeliza committed Dec 7, 2024
1 parent 52f4ec6 commit f55bdbb
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,42 +32,6 @@ jobs:
- name: Install dependencies
run: uv sync --locked

- name: Check Django Configuration
env:
DJANGO_SETTINGS_MODULE: inventory.tests.settings
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test_db
run: |
uv run python -c "
import os
import django
import sys

print('Python executable:', sys.executable)
print('Python version:', sys.version)
print('Current directory:', os.getcwd())
print('DJANGO_SETTINGS_MODULE:', os.environ.get('DJANGO_SETTINGS_MODULE'))
print('Sys path:')
for p in sys.path:
print(f' {p}')

try:
import inventory
print('Inventory package location:', inventory.__file__)
except ImportError as e:
print('Failed to import inventory:', e)

try:
import inventory.tests
print('Inventory tests location:', inventory.tests.__file__)
except ImportError as e:
print('Failed to import inventory.tests:', e)

try:
django.setup()
print('Django setup successful')
except Exception as e:
print('Django setup failed:', e)
"

- name: Apply migrations
env:
Expand Down

0 comments on commit f55bdbb

Please sign in to comment.