Skip to content

11

11 #11

Workflow file for this run

name: FastAPI CI (uv + make)
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11' # 或 3.12
- name: Install uv
run: pipx install uv
- name: Cache uv and venv
uses: actions/cache@v4
with:
path: |
~/.cache/uv
./.venv
key: uv-${{ runner.os }}-${{ hashFiles('pyproject.toml', 'uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-
- name: Sync deps (with dev extras)
run: uv sync --extra dev --frozen || uv sync --extra dev
- name: Run all checks
run: PYTHONPATH=. make check-all