From 4981ae2a8e1a6edf3c1c051e606c69f8e4429b69 Mon Sep 17 00:00:00 2001 From: srisailamkakurala Date: Sun, 29 Dec 2024 06:29:22 +0530 Subject: [PATCH] fix #1831 --- .github/workflows/tests.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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