-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a github action check to ensure collectstatic runs
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Check collectstatic | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12.6 | ||
- name: Cache Python dependencies | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: pythondotorg-cache-pip | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('requirements.txt', '*-requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}- | ||
${{ runner.os }}-${{ github.job }}- | ||
${{ runner.os }}- | ||
- name: Install Python dependencies | ||
run: | | ||
pip install -U pip setuptools wheel | ||
pip install -r dev-requirements.txt | ||
- name: Run Tests | ||
run: | | ||
DJANGO_SETTINGS_MODULE=pydotorg.settings.static python manage.py collectstatic --noinput |