File tree Expand file tree Collapse file tree 6 files changed +445
-91
lines changed Expand file tree Collapse file tree 6 files changed +445
-91
lines changed Original file line number Diff line number Diff line change 28
28
uses : actions/checkout@v3
29
29
with :
30
30
fetch-depth : 0
31
+ - name : Install poetry
32
+ run : pipx install poetry
31
33
- name : Setup Node.js
32
34
uses : actions/setup-node@v3
33
35
with :
37
39
with :
38
40
python-version : " 3.9"
39
41
cache : " pip"
42
+ - name : Resolve and 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 -r requirements.txt
40
48
- name : Set release notes tag
41
49
run : |
42
50
RELEASE_INPUT=${{ inputs.latest_published_version }}
47
55
run : |
48
56
npm install -g aws-cdk@2.29.0
49
57
cdk --version
50
- - name : install deps
51
- run : |
52
- pip install -r requirements.txt
53
58
- name : CDK build
54
59
run : cdk synth --context version=$RELEASE_TAG_VERSION -o cdk.out
55
60
- name : zip output
Original file line number Diff line number Diff line change 55
55
steps :
56
56
- name : checkout
57
57
uses : actions/checkout@v3
58
+ - name : Install poetry
59
+ run : pipx install poetry
58
60
- name : aws credentials
59
61
uses : aws-actions/configure-aws-credentials@v1
60
62
with :
@@ -69,13 +71,18 @@ jobs:
69
71
with :
70
72
python-version : " 3.9"
71
73
cache : " pip"
74
+ - name : Resolve and 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 -r requirements.txt
72
80
- name : install cdk and deps
73
81
run : |
74
82
npm install -g aws-cdk@2.29.0
75
83
cdk --version
76
84
- name : install deps
77
- run : |
78
- pip install -r requirements.txt
85
+ run : poetry install
79
86
- name : Download artifact
80
87
uses : actions/download-artifact@v3
81
88
with :
You can’t perform that action at this time.
0 commit comments