Skip to content

Commit 0176e35

Browse files
committed
[FEAT] - Add CI check to validate 'uv.lock' is up-to-date
1 parent f07b19c commit 0176e35

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13+
uv-lock-check:
14+
runs-on: ubuntu-latest
15+
name: "UV Lockfile Sync Validation 🔒"
16+
permissions:
17+
contents: read
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v5
21+
with:
22+
persist-credentials: false
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v6
26+
27+
- name: Check uv.lock sync status
28+
run: uv lock --locked
29+
1330
ruff:
1431
runs-on: ubuntu-latest
1532
name: "ruff on code"
@@ -26,7 +43,7 @@ jobs:
2643
src: "."
2744

2845
test-regular:
29-
needs: ["ruff"]
46+
needs: ["ruff", "uv-lock-check"]
3047
runs-on: ubuntu-latest
3148
name: "Tests py${{ matrix.python-version }}/dj${{ matrix.django-version }}/${{ matrix.broker }}"
3249
strategy:

0 commit comments

Comments
 (0)