Skip to content

Add alignment filters to senator list #210

Add alignment filters to senator list

Add alignment filters to senator list #210

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