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
32 changes: 10 additions & 22 deletions .github/workflows/check_py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,16 @@ jobs:

- run: rustup update

- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v6
with:
python-version: "3.9"

- name: Setup Ruff
run: |
python3 -m pip install -U pip
pip install ruff

- name: Run ruff check
run: |
pip install ruff
ruff check

- name: Run ruff isort
run: |
ruff check --select I --fix
- run: |
uv sync --extra dev

- name: Run ruff format
run: |
ruff format
- run: |
uv run ruff check
uv run ruff format --check --diff

staticcheck:
runs-on: ubuntu-latest
Expand All @@ -50,19 +39,18 @@ jobs:

- run: rustup update

- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v6
with:
python-version: "3.9"

- run: |
python3 -m pip install -U pip
# Require -e to pass pyright checks
pip install -e .[dev]
uv sync --extra dev

- name: Run mypy
run: |
mypy
uv run mypy

- name: Run pyright
run: |
pyright
uv run pyright
4 changes: 2 additions & 2 deletions .github/workflows/check_rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:

- name: Run rustfmt
run: |
cargo +nightly fmt -- --check
cargo +nightly fmt --check

- name: Run clippy
run: |
cargo clippy -- -D warnings
cargo clippy --all-targets -- -D warnings
4 changes: 1 addition & 3 deletions .github/workflows/cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ jobs:

- run: rustup update

- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v6
with:
python-version: "3.13"

- uses: astral-sh/setup-uv@v5

- name: Measure Python coverage
run: |
uv sync --extra dev
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on: [push, pull_request, workflow_dispatch]
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_docs:
runs-on: ubuntu-latest
Expand All @@ -14,15 +18,15 @@ jobs:

- run: rustup update

- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v6
with:
python-version: "3.13"

- run: |
python3 -m pip install -U pip
pip install -e .[dev,doc]
uv sync --extra dev --extra doc

- run: sphinx-build docs/source docs/build -W -a
- run: |
uv run sphinx-build docs/source docs/build -W -a

- uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test_py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ jobs:

- run: rustup update

- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python }}

- uses: astral-sh/setup-uv@v5

- name: Run Python tests
run: |
# Test with minimal dependencies
Expand Down
Loading