Skip to content

Commit 5fa28ef

Browse files
Skip checking uv.lock in resolution==lowest
1 parent 9615d43 commit 5fa28ef

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ jobs:
4040
run: make lint
4141
- name: Format
4242
run: make format
43-
- name: Check generated
44-
run: UV_RESOLUTION=${{ matrix.resolution }} make checkgenerate
43+
# When running with matrix.resolution == lowest, we expect uv.lock to change, but we don't want that file checked in.
44+
- if: matrix.resolution == 'highest'
45+
name: Check generated
46+
run: make checkgenerate
4547
env:
4648
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ lint: install $(BIN)/buf ## Lint code
7070
uv run -- ruff format --check --diff protovalidate test
7171
uv run -- mypy protovalidate
7272
uv run -- ruff check protovalidate test
73-
uv sync --locked
73+
uv lock --check
7474

7575
.PHONY: install
7676
install: ## Install dependencies

0 commit comments

Comments
 (0)