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
9 changes: 3 additions & 6 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ jobs:

- name: Install uv
uses: astral-sh/setup-uv@v3

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
enable-cache: true

- name: Install the project
run: uv sync --frozen --all-extras --dev
- name: Set up Python 3.12
run: uv python install 3.12

- name: Build
run: uv build
Expand Down
32 changes: 10 additions & 22 deletions .github/workflows/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,11 @@ jobs:
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
run: uv sync --frozen --all-extras --dev --python 3.12

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

typecheck:
runs-on: ubuntu-latest
Expand All @@ -35,19 +30,17 @@ jobs:
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
run: uv sync --frozen --all-extras --dev --python 3.12

- name: Run pyright
run: uv run --frozen pyright
run: uv run --no-sync pyright

build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand All @@ -57,13 +50,8 @@ jobs:
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
run: uv sync --frozen --all-extras --dev --python ${{ matrix.python-version }}

- name: Run pytest
run: uv run --frozen pytest
run: uv run --no-sync pytest
1 change: 0 additions & 1 deletion .python-version

This file was deleted.