diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7cbef817c..d565377a5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,7 @@ on: push: branches: - main + - fix/fixes-#1831 pull_request: jobs: @@ -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