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
17 changes: 11 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,27 @@ jobs:
persist-credentials: false

- name: Install uv
uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc
with:
activate-environment: true
enable-cache: true

# HACK: there's a bug in either `astral-sh/setup-uv` or pre-commit-uv or both
# because uv gets installed to `/opt/hostedtoolcache/uv/<version>/x86_64/uv`
# and pre-commit-uv apparently only looks for it at `~/.local/bin/uv`
- run: |
mkdir -p ~/.local/bin
ln -sf $(which uv) ~/.local/bin/uv
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit/
key: pre-commit-1|${{ hashFiles('.pre-commit-config.yaml') }}

- name: pre-commit
- name: Run pre-commit
run: |
SKIP=no-commit-to-branch \
uv run --with pre-commit-uv pre-commit run \
--all-files \
--show-diff-on-failure \
--color always
uv run noxfile.py --session lint
rustfmt:
runs-on: ubuntu-24.04
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:
persist-credentials: false

- name: Install uv
uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc
with:
activate-environment: true
enable-cache: true

- id: set-matrix
Expand All @@ -66,8 +67,9 @@ jobs:
persist-credentials: false

- name: Install uv
uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc
with:
activate-environment: true
enable-cache: true

- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
persist-credentials: false

- name: Install uv
uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc
with:
enable-cache: true

Expand Down
3 changes: 3 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ def lint(session):
"pre-commit",
"run",
"--all-files",
"--show-diff-on-failure",
"--color",
"always",
)


Expand Down