Skip to content
Draft
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
17 changes: 2 additions & 15 deletions .github/workflows/builddoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ concurrency:

env:
FORCE_COLOR: "1"
UV_SYSTEM_PYTHON: "1" # make uv do global installs

jobs:
verbose:
Expand All @@ -30,18 +29,6 @@ jobs:
python-version: "3"
- name: Install graphviz
run: sudo apt-get install --no-install-recommends --yes graphviz
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: latest
enable-cache: false
Comment on lines -33 to -37
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to remove the name/options keys?

- name: Install dependencies
run: uv pip install . --group docs
- uses: astral-sh/setup-uv@v7
- name: Render the documentation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way we can keep the split of the resolve/install step and the run command step (throughout)? I use CI timings as a rough hueristic for various things.

run: >
sphinx-build
-M html ./doc ./build/sphinx
--verbose
--jobs=auto
--show-traceback
--fail-on-warning
run: uv run --locked --group docs sphinx-build -M html ./doc ./build/sphinx --verbose --jobs=auto --show-traceback --fail-on-warning
14 changes: 3 additions & 11 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ concurrency:

env:
FORCE_COLOR: "1"
UV_SYSTEM_PYTHON: "1" # make uv do global installs

jobs:
publish-pypi:
Expand All @@ -34,20 +33,13 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: latest
enable-cache: false

- name: Install build dependencies (pypa/build, twine)
run: uv pip install --group package
- uses: astral-sh/setup-uv@v7

- name: Build distribution
run: python -m build
run: uv run --locked --no-default-groups --group package python -m build .

- name: Check distribution
run: twine check dist/*
run: uv run --locked --no-default-groups --group package twine check dist/*.{whl,tar.gz}

- name: Create Sigstore attestations for built distributions
uses: actions/attest@v1
Expand Down
53 changes: 10 additions & 43 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ concurrency:

env:
FORCE_COLOR: "1"
UV_SYSTEM_PYTHON: "1" # make uv do global installs

jobs:
# If you update any of these commands, don't forget to update the equivalent
Expand Down Expand Up @@ -49,15 +48,9 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: latest
enable-cache: false
- name: Install dependencies
run: uv pip install -r pyproject.toml --group package --group test --group types
- uses: astral-sh/setup-uv@v7
- name: Type check with mypy
run: mypy
run: uv run --locked --group package --group test --group types mypy

pyright:
runs-on: ubuntu-latest
Expand All @@ -70,15 +63,9 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: latest
enable-cache: false
- name: Install dependencies
run: uv pip install -r pyproject.toml --group package --group test --group types
- uses: astral-sh/setup-uv@v7
- name: Type check with pyright
run: pyright
run: uv run --locked --group package --group test --group types pyright

ty:
runs-on: ubuntu-latest
Expand All @@ -91,15 +78,9 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: latest
enable-cache: false
- name: Install dependencies
run: uv pip install -r pyproject.toml --group package --group test --group types
- uses: astral-sh/setup-uv@v7
- name: Type check with ty
run: ty check --color=always
run: uv run --locked --group package --group test --group types ty check --color=always

docs-lint:
runs-on: ubuntu-latest
Expand All @@ -112,15 +93,9 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: latest
enable-cache: false
- name: Install dependencies
run: uv pip install --group lint
- uses: astral-sh/setup-uv@v7
- name: Lint documentation with sphinx-lint
run: make doclinter
run: uv run --locked --group lint make doclinter

twine:
runs-on: ubuntu-latest
Expand All @@ -133,17 +108,9 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: "3"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: latest
enable-cache: false
- name: Install dependencies
run: uv pip install --group package
- uses: astral-sh/setup-uv@v7
- name: Lint with twine
run: |
python -m build .
twine check dist/*
run: uv run --locked --no-default-groups --group package python -m build . && uv run --locked --no-default-groups --group package twine check dist/*.{whl,tar.gz}

prettier:
runs-on: ubuntu-latest
Expand Down
Loading
Loading