Add alignment filters to senator list #210
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: Build and test backend | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build_and_test_backend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Start services | |
run: docker-compose -f backend/docker-compose.test.yml up -d | |
- name: Wait for services to start | |
run: sleep 10s | |
- name: Check types | |
run: docker-compose -f backend/docker-compose.test.yml run --rm web mypy . | |
- name: Run Django tests | |
run: docker-compose -f backend/docker-compose.test.yml run --rm web python manage.py test | |
- name: Stop services | |
run: docker-compose -f backend/docker-compose.test.yml down |