Skip to content

Commit 57dd0dd

Browse files
1 parent 124be99 commit 57dd0dd

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Tests
32

43
on:
@@ -38,7 +37,8 @@ jobs:
3837
python-version: "${{ matrix.python-version }}"
3938
- name: Install dependencies
4039
run: |
41-
python -m pip install --upgrade pip setuptools coveralls "tox<5" "tox-gh-actions<4"
40+
python -m pip install --upgrade pip setuptools
41+
python -m pip install -r requirements/tests.txt
4242
- name: Set up databases
4343
run: |
4444
PGPASSWORD="postgres" createuser -U postgres -d djangoproject --superuser -h localhost
@@ -59,6 +59,18 @@ jobs:
5959
echo '"trac_db_host": "localhost", ' >> conf/secrets.json
6060
echo '"trac_db_password": "secret", ' >> conf/secrets.json
6161
echo '"secret_key": "a"}' >> conf/secrets.json
62+
- name: Run collectstatic with ManifestStaticFilesStorage
63+
env:
64+
DJANGO_SETTINGS_MODULE: "djangoproject.settings.dev"
65+
run: |
66+
python manage.py collectstatic --noinput || (
67+
echo "Collectstatic failed. Debugging file paths..."
68+
find staticfiles/ -type f -exec echo "Static file: {}" \;
69+
exit 1
70+
)
71+
- name: Cleanup static files
72+
run: |
73+
rm -rf staticfiles/static
6274
- name: Run tox
6375
run: |
6476
python -m tox

0 commit comments

Comments
 (0)