@@ -29,15 +29,33 @@ jobs:
29
29
- uses : actions/checkout@v2
30
30
31
31
- name : setup python ${{ matrix.python-version }} environment
32
+ id : setup-python
32
33
uses : actions/setup-python@v2
33
34
with :
34
35
python-version : ${{ matrix.python-version }}
35
36
36
- - uses : Gr1N/setup-poetry@v7
37
+ - name : install Poetry
38
+ uses : snok/install-poetry@v1
39
+ with :
40
+ virtualenvs-create : true
41
+ virtualenvs-in-project : true
42
+ installer-parallel : true
37
43
38
44
- run : pip install poetry-dynamic-versioning
39
45
40
- - run : poetry install
46
+ - name : Load cached venv
47
+ id : cached-poetry-dependencies
48
+ uses : actions/cache@v2
49
+ with :
50
+ path : .venv
51
+ key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
52
+
53
+ - name : Install dependencies
54
+ if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
55
+ run : poetry install --no-interaction --no-root
56
+
57
+ - name : install robotcode
58
+ run : poetry install --no-interaction
41
59
42
60
- name : " test python packages"
43
61
timeout-minutes : 15
@@ -76,15 +94,33 @@ jobs:
76
94
- uses : actions/checkout@v1
77
95
78
96
- name : setup python environment
97
+ id : setup-python
79
98
uses : actions/setup-python@v2
80
99
with :
81
100
python-version : " 3.8"
82
101
83
- - uses : Gr1N/setup-poetry@v7
102
+ - name : install Poetry
103
+ uses : snok/install-poetry@v1
104
+ with :
105
+ virtualenvs-create : true
106
+ virtualenvs-in-project : true
107
+ installer-parallel : true
84
108
85
109
- run : pip install poetry-dynamic-versioning
86
110
87
- - run : poetry install
111
+ - name : Load cached venv
112
+ id : cached-poetry-dependencies
113
+ uses : actions/cache@v2
114
+ with :
115
+ path : .venv
116
+ key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
117
+
118
+ - name : Install dependencies
119
+ if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
120
+ run : poetry install --no-interaction --no-root
121
+
122
+ - name : install robotcode
123
+ run : poetry install --no-interaction
88
124
89
125
- run : poetry run isort --check --diff .
90
126
if : always()
@@ -110,27 +146,49 @@ jobs:
110
146
111
147
- run : git describe --tag
112
148
113
- - name : Setup Node.js environment
114
- uses : actions/setup-node@v2
115
- with :
116
- node-version : " 16"
117
- - uses : actions/setup-python@v2
149
+ - name : setup python environment
150
+ id : setup-python
151
+ uses : actions/setup-python@v2
118
152
with :
119
153
python-version : " 3.8"
120
154
121
- - uses : Gr1N/setup-poetry@v7
155
+ - name : install Poetry
156
+ uses : snok/install-poetry@v1
157
+ with :
158
+ virtualenvs-create : true
159
+ virtualenvs-in-project : true
160
+ installer-parallel : true
122
161
123
162
- run : pip install poetry-dynamic-versioning
124
163
125
- - run : poetry install
164
+ - name : Load cached venv
165
+ id : cached-poetry-dependencies
166
+ uses : actions/cache@v2
167
+ with :
168
+ path : .venv
169
+ key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
170
+
171
+ - name : Install dependencies
172
+ if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
173
+ run : poetry install --no-interaction --no-root
174
+
175
+ - name : install robotcode
176
+ run : poetry install --no-interaction
126
177
127
178
- run : poetry-dynamic-versioning
128
179
180
+ - name : Setup Node.js environment
181
+ uses : actions/setup-node@v2
182
+ with :
183
+ node-version : " 16"
184
+ cache : ' npm'
185
+ cache-dependency-path : package-lock.json
186
+
129
187
- name : install node modules
130
188
run : npm install --also=dev
131
189
132
190
- name : package
133
- run : poetry run npm run package
191
+ run : poetry run npm- run package
134
192
135
193
- name : Upload VSCode package
136
194
uses : actions/upload-artifact@v2
@@ -161,22 +219,44 @@ jobs:
161
219
162
220
- run : git describe --tag
163
221
164
- - name : Setup Node.js environment
165
- uses : actions/setup-node@v2
166
- with :
167
- node-version : " 16"
168
- - uses : actions/setup-python@v2
222
+ - name : setup python environment
223
+ id : setup-python
224
+ uses : actions/setup-python@v2
169
225
with :
170
226
python-version : " 3.8"
171
227
172
- - uses : Gr1N/setup-poetry@v7
228
+ - name : install Poetry
229
+ uses : snok/install-poetry@v1
230
+ with :
231
+ virtualenvs-create : true
232
+ virtualenvs-in-project : true
233
+ installer-parallel : true
173
234
174
235
- run : pip install poetry-dynamic-versioning
175
236
176
- - run : poetry install
237
+ - name : Load cached venv
238
+ id : cached-poetry-dependencies
239
+ uses : actions/cache@v2
240
+ with :
241
+ path : .venv
242
+ key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
243
+
244
+ - name : Install dependencies
245
+ if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
246
+ run : poetry install --no-interaction --no-root
247
+
248
+ - name : install robotcode
249
+ run : poetry install --no-interaction
177
250
178
251
- run : poetry-dynamic-versioning
179
252
253
+ - name : Setup Node.js environment
254
+ uses : actions/setup-node@v2
255
+ with :
256
+ node-version : " 16"
257
+ cache : ' npm'
258
+ cache-dependency-path : package-lock.json
259
+
180
260
- name : install node modules
181
261
run : npm install --also=dev
182
262
@@ -195,7 +275,7 @@ jobs:
195
275
196
276
- name : get release notes
197
277
id : get_release_notes
198
- run : echo "::set-output name=release_notes::$(poetry run npm run extract-release-notes)"
278
+ run : echo "::set-output name=release_notes::$(poetry run npm- run extract-release-notes)"
199
279
200
280
- name : find assets
201
281
id : find_assets
@@ -255,7 +335,7 @@ jobs:
255
335
asset_content_type : application/whl
256
336
257
337
- name : publish vsix and python packages
258
- run : poetry run npm run publish
338
+ run : poetry run npm- run publish
259
339
env :
260
340
VSCE_PAT : ${{ secrets.VSCE_PAT }}
261
341
OVSX_PAT : ${{ secrets.OVSX_PAT }}
0 commit comments