Skip to content
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,25 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the whole history is needed for this job?

fetch-depth: 0

- name: Set up Python
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you've also migrated to uv, setting up python separately is not needed, uv sync will do it automatically.

uses: actions/setup-python@v5
with:
python-version-file: ".python-version"

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

- name: Install dependencies
run: pip install '.[dev,docs]'

- name: Check uv.lock is up to date
run: uv lock --check

- name: Run ruff linter
run: ruff check

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Install uv
uses: astral-sh/setup-uv@v5
Expand All @@ -28,7 +35,7 @@ jobs:
set -eE
set -o pipefail

uv sync --extra docs
uv sync --frozen --extra docs

- name: Build documentation
run: |
Expand Down
Loading