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
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ jobs:
with:
python-version: {{ "${{ matrix.python-version }}" }}

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Install dependencies
run: |
python3 -m pip install ".[tests]"
run: uv sync --extra tests

- name: Run tests
run: python3 -m pytest
run: uv run pytest

lint:
name: lint
Expand All @@ -33,11 +38,16 @@ jobs:
with:
python-version: "3.11"

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Install dependencies
run: python3 -m pip install ".[dev]"
run: uv sync --extra dev

- name: Check style
run: python3 -m ruff check . && python3 -m ruff format --check .
run: uv run ruff check && uv run ruff format --check

precommit_hooks:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -72,12 +82,15 @@ jobs:
with:
python-version: 3.11

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install '.[docs]'
run: uv sync --extra docs

- name: Attempt docs build
working-directory: ./docs
run: make html
run: source ../.venv/bin/activate && make html
{% endif %}
Loading