Skip to content

Commit 6100b8e

Browse files
committed
feat(ci): check lockfile status in CI pipeline
1 parent b5e5737 commit 6100b8e

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,21 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16+
1617
- name: install uv and python
1718
uses: astral-sh/setup-uv@v7
1819
with:
1920
version: "0.11.28"
2021
python-version: ${{ matrix.python-version }}
22+
2123
- name: Install
2224
run: make install-dev
25+
26+
- name: Check lock status
27+
run: make check-lock
28+
2329
- name: Lint
2430
run: make lint-services
31+
2532
- name: Test
2633
run: make test-services

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,10 @@ update-dependencies:
4141
cd core && uv lock
4242
# lock services
4343
@for f in $(shell ls ${SERVICES_DIR}); do set -e; cd ${SERVICES_DIR}/$${f};uv lock; cd ../..; done
44+
45+
check-lock:
46+
# services
47+
@for f in $(shell ls ${SERVICES_DIR}); do set -e;echo ">> Checking lockfile of $${f}" && uv lock --check --directory ${SERVICES_DIR}/$${f}; done
48+
# core
49+
echo ">> Checking lockfile of core"
50+
uv lock --check --directory core

0 commit comments

Comments
 (0)