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 124be99 commit 77f5de7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- fix/fixes-#1831
pull_request:

jobs:
Expand Down Expand Up @@ -59,6 +60,18 @@ 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: 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
)
- name: Cleanup static files
run: |
rm -rf staticfiles/static
- name: Run tox
run: |
python -m tox
Expand Down

0 comments on commit 77f5de7

Please sign in to comment.