Skip to content

feature/tests/fix_unclosed_database_connection_on_tests #4

feature/tests/fix_unclosed_database_connection_on_tests

feature/tests/fix_unclosed_database_connection_on_tests #4

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: performancelab_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 5s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.14"
- name: Install dependencies
run: uv sync --all-extras
- name: Lint
run: ruff check .
- name: Type check
run: mypy api/
- name: Test with coverage
run: pytest tests/ -v --cov=api --cov-report=term-missing
env:
DATABASE_URL: postgresql+psycopg://postgres:postgres@localhost:5432/performancelab_test
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: .coverage