Skip to content

Fix unhandled MSW cookie auth requests and httpx per-request cookies … #12

Fix unhandled MSW cookie auth requests and httpx per-request cookies …

Fix unhandled MSW cookie auth requests and httpx per-request cookies … #12

Workflow file for this run

name: Backend CI
on:
push:
branches: [main]
paths:
- 'backend/**'
- '.github/workflows/backend.yml'
pull_request:
branches: [main]
paths:
- 'backend/**'
- '.github/workflows/backend.yml'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
env:
PREFECT_SERVER_EPHEMERAL_STARTUP_TIMEOUT_SECONDS: "120"
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-caching: true
python-version: '3.12'
- name: Install dependencies
run: uv sync --all-groups
- name: Lint (ruff)
run: uv run ruff check .
- name: Format check (ruff)
run: uv run ruff format --check .
- name: Type check (ty)
run: uv run ty check app
- name: Test with coverage
run: uv run pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: backend/coverage.lcov
flags: backend
fail_ci_if_error: true
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: backend-coverage
path: backend/coverage.lcov