Skip to content
Merged
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
33 changes: 9 additions & 24 deletions .github/workflows/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,24 @@ on:
workflow_call:

jobs:
format:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: 0.7.2

- name: Install the project
run: uv sync --frozen --all-extras --dev --python 3.12

- name: Run ruff format check
run: uv run --no-sync ruff check .

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: uv sync --frozen --all-extras --python 3.10

- name: Install uv
uses: astral-sh/setup-uv@v3
- uses: pre-commit/action@v3.0.0
with:
enable-cache: true
version: 0.7.2

- name: Install the project
run: uv sync --frozen --all-extras --dev --python 3.12

- name: Run pyright
run: uv run --no-sync pyright
extra_args: --all-files --verbose
env:
SKIP: no-commit-to-branch

test:
runs-on: ${{ matrix.os }}
Expand All @@ -55,7 +40,7 @@ jobs:
version: 0.7.2

- name: Install the project
run: uv sync --frozen --all-extras --dev --python ${{ matrix.python-version }}
run: uv sync --frozen --all-extras --python ${{ matrix.python-version }}

- name: Run pytest
run: uv run --no-sync pytest
Expand Down
Loading