Address Copilot review of format_html() functions #1573
Workflow file for this run
This file contains hidden or 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
| name: Check collectstatic | |
| on: [push, pull_request, workflow_dispatch] | |
| permissions: {} | |
| jobs: | |
| collectstatic: | |
| if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: '.python-version' | |
| - name: Cache Python dependencies | |
| uses: actions/cache@v5 | |
| env: | |
| cache-name: pythondotorg-cache-pip | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('pyproject.toml') }} | |
| 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 '.[prod]' | |
| - name: Run Tests | |
| run: | | |
| DJANGO_SETTINGS_MODULE=pydotorg.settings.static python manage.py collectstatic --noinput |