Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SrisailamKakurala committed Dec 29, 2024
1 parent 124be99 commit 57dd0dd
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Tests

on:
Expand Down Expand Up @@ -38,7 +37,8 @@ jobs:
python-version: "${{ matrix.python-version }}"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools coveralls "tox<5" "tox-gh-actions<4"
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements/tests.txt
- name: Set up databases
run: |
PGPASSWORD="postgres" createuser -U postgres -d djangoproject --superuser -h localhost
Expand All @@ -59,6 +59,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
Expand Down

0 comments on commit 57dd0dd

Please sign in to comment.