github: add workflows to check formatting and typecheck

This commit is contained in:
David Soria Parra
2024-10-11 11:31:56 +01:00
parent fd68df6687
commit 211b5f069a
5 changed files with 555 additions and 6 deletions

View File

@@ -11,10 +11,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- run: pip install .
- run: pip install -U pytest trio
- run: pytest
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install the project
run: uv sync --frozen --all-extras --dev
- name: Run pytest
run: uv run --frozen pytest