File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 29
29
with :
30
30
fetch-depth : 0
31
31
- name : 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
32
+ run : pipx install poetry
37
33
- name : Setup Node.js
38
34
uses : actions/setup-node@v3
39
35
with :
42
38
uses : actions/setup-python@v4
43
39
with :
44
40
python-version : " 3.9"
45
- cache : " poetry"
41
+ cache : " pip"
42
+ - name : Install project dependencies
43
+ # CDK spawns system python when compiling stack
44
+ # therefore it ignores both activated virtual env and cached interpreter by GH
45
+ run : |
46
+ poetry export --format requirements.txt --output requirements.txt
47
+ pip install requirements.txt
46
48
- name : Set release notes tag
47
49
run : |
48
50
RELEASE_INPUT=${{ inputs.latest_published_version }}
53
55
run : |
54
56
npm install -g aws-cdk@2.29.0
55
57
cdk --version
56
- - name : install deps
57
- run : poetry install
58
58
- name : CDK build
59
59
run : cdk synth --context version=$RELEASE_TAG_VERSION -o cdk.out
60
60
- name : zip output
Original file line number Diff line number Diff line change 56
56
- name : checkout
57
57
uses : actions/checkout@v3
58
58
- name : 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
59
+ run : pipx install poetry
64
60
- name : aws credentials
65
61
uses : aws-actions/configure-aws-credentials@v1
66
62
with :
75
71
with :
76
72
python-version : " 3.9"
77
73
cache : " pip"
74
+ - name : Install project dependencies
75
+ # CDK spawns system python when compiling stack
76
+ # therefore it ignores both activated virtual env and cached interpreter by GH
77
+ run : |
78
+ poetry export --format requirements.txt --output requirements.txt
79
+ pip install requirements.txt
78
80
- name : install cdk and deps
79
81
run : |
80
82
npm install -g aws-cdk@2.29.0
You can’t perform that action at this time.
0 commit comments