Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SrisailamKakurala committed Dec 29, 2024
1 parent 77f5de7 commit 4981ae2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,19 @@ jobs:
echo '"trac_db_host": "localhost", ' >> conf/secrets.json
echo '"trac_db_password": "secret", ' >> conf/secrets.json
echo '"secret_key": "a"}' >> conf/secrets.json
- name: Install Django
run: |
python -m pip install django
- name: Run collectstatic with ManifestStaticFilesStorage
env:
DJANGO_SETTINGS_MODULE: "djangoproject.settings.dev"
run: |
python manage.py collectstatic --noinput || (
echo "Collectstatic failed. Debugging file paths..."
find staticfiles/ -type f -exec echo "Static file: {}" \;
exit 1
)
python manage.py collectstatic --noinput || (
echo "Collectstatic failed. Debugging file paths..."
find staticfiles/ -type f -exec echo "Static file: {}" \;
exit 1
)
- name: Cleanup static files
run: |
rm -rf staticfiles/static
Expand Down

0 comments on commit 4981ae2

Please sign in to comment.