name: CI on: push: branches: [main] pull_request: branches: [main] jobs: backend-lint-and-test: runs-on: docker container: image: python:3.12-slim services: postgres: image: postgres:16-alpine env: POSTGRES_USER: bim POSTGRES_PASSWORD: testpassword POSTGRES_DB: bim_test env: DATABASE_URL: postgresql+asyncpg://bim:testpassword@postgres:5432/bim_test steps: - uses: actions/checkout@v4 - name: Install dependencies run: | cd backend pip install -r requirements.txt - name: Run tests run: | cd backend python -m pytest -v