test: lock in instance-attribute reads in api_bootstrapper_config #202
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/[email protected] | |
| - run: uv python install 3.14 | |
| - run: | | |
| uv sync --all-extras --all-groups --frozen --no-install-project | |
| uv run ruff format . --check | |
| uv run ruff check . --no-fix | |
| uv run ty check | |
| pytest: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:latest | |
| env: | |
| POSTGRES_DB: postgres | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_USER: postgres | |
| ports: | |
| - 5432:5432 | |
| # Set health checks to wait until postgres has started | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/[email protected] | |
| - run: uv python install 3.14 | |
| - run: | | |
| uv sync --all-extras --all-groups --frozen --no-install-project | |
| uv run alembic upgrade head | |
| uv run pytest . --cov=. --cov-report xml | |
| env: | |
| SERVICE_ENVIRONMENT: ci | |
| PYTHONDONTWRITEBYTECODE: 1 | |
| PYTHONUNBUFFERED: 1 | |
| DB_DSN: postgresql+asyncpg://postgres:[email protected]/postgres |