Skip to content

fix: guard web tests with importorskip(fastapi) for CI #58

fix: guard web tests with importorskip(fastapi) for CI

fix: guard web tests with importorskip(fastapi) for CI #58

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
python-version: "3.12"
- run: uv sync --all-packages
- run: uv run ruff check .
- run: uv run ruff format --check .
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
python-version: "3.12"
- run: uv sync --all-packages
- run: uv run pyright packages/agent-session-tools/
- run: cd packages/studyctl && uv run pyright src/
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
- run: uv sync --all-packages --extra dev --extra test
- run: uv run pytest --tb=short