Skip to content

Commit 3abad0b

Browse files
authored
lambdas: do not install test deps in .zip package (#4659)
1 parent 6beb2be commit 3abad0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/py-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ jobs:
166166
- uses: astral-sh/setup-uv@v7
167167
- name: Export requirements.txt from uv.lock
168168
run: |
169-
uv export --locked --no-emit-project --no-hashes --directory lambdas/${{ matrix.path }} -o requirements.txt
170-
uv export --locked --no-emit-project --no-hashes --directory lambdas/${{ matrix.path }} --only-group test -o test-requirements.txt
169+
uv export --locked --no-emit-project --no-hashes --directory lambdas/${{ matrix.path }} -o requirements.txt --no-default-groups
170+
uv export --locked --no-emit-project --no-hashes --directory lambdas/${{ matrix.path }} -o test-requirements.txt --only-group test
171171
- name: Install dependencies
172172
run: |
173173
# Try to simulate the lambda .zip file:

lambdas/scripts/build_zip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mkdir out
2727
cd out
2828

2929
# install everything into a temporary directory
30-
uv export --locked --no-emit-project --no-hashes --directory /lambda/function/ -o requirements.txt
30+
uv export --locked --no-emit-project --no-hashes --directory /lambda/function/ -o requirements.txt --no-default-groups
3131
uv pip install --no-compile --no-deps --target . -r /lambda/function/requirements.txt /lambda/function/
3232
python3 -m compileall -b .
3333

0 commit comments

Comments
 (0)