Skip to content

Commit 742a3a9

Browse files
committed
fix(ci): disable poetry venv for layer workflow as cdk ignores venv
1 parent b0eae58 commit 742a3a9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/publish_layer.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ jobs:
2929
with:
3030
fetch-depth: 0
3131
- name: Install poetry
32-
run: pipx install poetry
32+
# CDK spawns system python when compiling stack
33+
# therefore it ignores activated virtual env, thus missing deps
34+
run: |
35+
pipx install poetry
36+
poetry config virtualenvs.create false
3337
- name: Setup Node.js
3438
uses: actions/setup-node@v3
3539
with:

.github/workflows/reusable_deploy_layer_stack.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ jobs:
5656
- name: checkout
5757
uses: actions/checkout@v3
5858
- name: Install poetry
59-
run: pipx install poetry
59+
# CDK spawns system python when compiling stack
60+
# therefore it ignores activated virtual env, thus missing deps
61+
run: |
62+
pipx install poetry
63+
poetry config virtualenvs.create false
6064
- name: aws credentials
6165
uses: aws-actions/configure-aws-credentials@v1
6266
with:

0 commit comments

Comments
 (0)