Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,31 @@ jobs:
test:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
os: [ ubuntu-latest, macos-latest ]
python-version: ["3.14"]
uv-resolution:
- highest
include:
- python-version: "3.9"
os: macos-latest
uv-resolution: lowest-direct
- python-version: "3.10"
os: ubuntu-latest
uv-resolution: highest
- python-version: "3.11"
os: macos-latest
uv-resolution: lowest-direct
- python-version: "3.12"
os: ubuntu-latest
uv-resolution: highest
- python-version: "3.13"
os: macos-latest
uv-resolution: lowest-direct
fail-fast: false
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
env:
UV_PYTHON: ${{ matrix.python-version }}
UV_RESOLUTION: ${{ matrix.uv-resolution }}
steps:
- name: Dump GitHub context
env:
Expand All @@ -52,17 +72,17 @@ jobs:
with:
limit-access-to-actor: true
- name: Install Dependencies
run: uv sync --locked --all-extras --dev
run: uv sync --all-extras --dev
- run: mkdir coverage
- name: Test
run: uv run --no-sync scripts/test.sh
run: uv run --no-sync bash scripts/test.sh
env:
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
- name: Store coverage files
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
name: coverage-${{ runner.os }}-${{ matrix.python-version }}
path: coverage
include-hidden-files: true

Expand Down
13 changes: 8 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ classifiers = [
"Programming Language :: Python :: 3.13",
]
dependencies = [
"typer >= 0.12.3",
"uvicorn[standard] >= 0.15.0",
"typer >= 0.16.0",
"uvicorn[standard] >= 0.17.6",
"rignore >= 0.5.1",
"httpx >= 0.27.0",
"rich-toolkit >= 0.19.4",
"pydantic[email] >= 2.0",
"pydantic[email] >= 2.7.4; python_version < '3.13'",
"pydantic[email] >= 2.8.0; python_version == '3.13'",
"pydantic[email] >= 2.12.0; python_version >= '3.14'",
"sentry-sdk >= 2.20.0",
"fastar >= 0.8.0",
]
Expand All @@ -45,8 +47,8 @@ standard = ["uvicorn[standard] >= 0.15.0"]
[dependency-groups]
dev = [
"prek>=0.2.24,<1.0.0",
"pytest>=4.4.0,<9.0.0",
"coverage[toml]>=6.2,<8.0",
"pytest>=7.0.0,<9.0.0",
"coverage[toml]>=7.2,<8.0",
"mypy==1.14.1",
"ruff==0.13.0",
"respx==0.22.0",
Expand Down Expand Up @@ -80,6 +82,7 @@ junit_family = "xunit2"
parallel = true
data_file = "coverage/.coverage"
source = ["src", "tests"]
relative_files = true
context = '${CONTEXT}'
dynamic_context = "test_function"
omit = ["tests/assets/*"]
Expand Down
Loading