Skip to content

Commit 14d5dc5

Browse files
committed
add uv sync to workflows as we are no longer commiting lock file
1 parent cb34f30 commit 14d5dc5

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.github/workflows/bandit_scan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
- name: Setup uv
1818
uses: astral-sh/setup-uv@v6
1919

20+
- name: Sync uv
21+
run: |
22+
uv sync
23+
2024
- name: Run Bandit
2125
run: |
2226
uv run --only-group bandit bandit --configfile pyproject.toml --recursive . --format sarif --output results.sarif || true

.github/workflows/pypi-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
- name: Set up UV
2020
uses: astral-sh/setup-uv@v6
2121

22+
- name: Sync uv
23+
run: |
24+
uv sync
25+
2226
- name: Build package with uv
2327
run: |
2428
uv --no-dev --no-default-groups build

.github/workflows/python-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525

26+
- name: Sync uv
27+
run: |
28+
uv sync
29+
2630
- name: Test with pytest
2731
run: |
2832
uv run --no-dev --frozen pytest --isolate

.pre-commit-config.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,4 @@ repos:
1010
- id: ruff-check
1111
- id: ruff-format
1212
repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.14.7
14-
- hooks:
15-
- id: uv-lock
16-
repo: https://github.com/astral-sh/uv-pre-commit
17-
rev: 0.9.13
13+
rev: v0.14.7

0 commit comments

Comments
 (0)