File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
- ---
2
1
name : Tests
3
2
4
3
on :
38
37
python-version : " ${{ matrix.python-version }}"
39
38
- name : Install dependencies
40
39
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
42
42
- name : Set up databases
43
43
run : |
44
44
PGPASSWORD="postgres" createuser -U postgres -d djangoproject --superuser -h localhost
59
59
echo '"trac_db_host": "localhost", ' >> conf/secrets.json
60
60
echo '"trac_db_password": "secret", ' >> conf/secrets.json
61
61
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
62
74
- name : Run tox
63
75
run : |
64
76
python -m tox
You can’t perform that action at this time.
0 commit comments