diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d565377a5..278ff62c6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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