Skip to content

Commit 983da61

Browse files
authored
Merge pull request #665 from opsmill/pog-check-uv-lock
Validate uv.lock in CI
2 parents 489d6f9 + 4bcfc7e commit 983da61

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,28 @@ jobs:
119119
env:
120120
SHELLCHECK_OPTS: --exclude=SC2086 --exclude=SC2046 --exclude=SC2004 --exclude=SC2129
121121

122+
uv-lock-check:
123+
if: |
124+
needs.files-changed.outputs.uv_files == 'true' ||
125+
needs.files-changed.outputs.github_workflows == 'true'
126+
needs:
127+
- files-changed
128+
- prepare-environment
129+
runs-on: "ubuntu-latest"
130+
timeout-minutes: 5
131+
steps:
132+
- name: "Check out repository code"
133+
uses: "actions/checkout@v5"
134+
- name: "Set up Python"
135+
uses: "actions/setup-python@v6"
136+
with:
137+
python-version: "3.12"
138+
- name: "Install uv"
139+
uses: astral-sh/setup-uv@v7
140+
with:
141+
version: ${{ needs.prepare-environment.outputs.UV_VERSION }}
142+
- name: "Validate pyproject.toml and consistency with uv.lock"
143+
run: uv lock --locked --offline
122144

123145
documentation:
124146
defaults:

0 commit comments

Comments
 (0)