Skip to content

infra: migrate to uv and ruff #497

infra: migrate to uv and ruff

infra: migrate to uv and ruff #497

Workflow file for this run

name: coverage
on:
pull_request:
push:
branches:
- main
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
activate-environment: true
enable-cache: true
- name: Install dependencies
run: uv sync --locked --all-extras --dev
- name: Test with pytest
run: uv run pytest --cov=fastapi_azure_auth tests/ --verbose --assert=plain --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}