Bump django-filter from 24.2 to 24.3 #4
Workflow file for this run
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
name: CI | |
# Enable Buildkit and let compose use it to speed up image building | |
env: | |
DOCKER_BUILDKIT: 1 | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
on: | |
pull_request: | |
branches: ['main'] | |
push: | |
branches: ['main'] | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code Repository | |
uses: actions/checkout@v4 | |
- name: Create .secret environment file | |
run: touch .env/.secret | |
- name: Build the Stack | |
run: docker compose build | |
- name: Run DB Migrations | |
run: docker compose run --rm ui python manage.py migrate | |
- name: Run Django UI Tests | |
run: docker compose run ui pytest --ds=config.settings.local.ui -o 'python_files=test_ui_*.py' | |
- name: Run Django API Tests | |
run: docker compose run api pytest --ds=config.settings.local.api -o 'python_files=test_api_*.py' | |
- name: Tear down the Stack | |
run: docker compose down |