Skip to content

Commit 7aa98fc

Browse files
committed
update build workflow
1 parent ae35fad commit 7aa98fc

File tree

4 files changed

+199
-213
lines changed

4 files changed

+199
-213
lines changed

.github/workflows/build-test-package-publish.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
jobs:
2020
test:
2121
runs-on: ${{ matrix.os }}
22+
defaults:
23+
run:
24+
shell: bash
2225
strategy:
2326
fail-fast: false
2427
matrix:
@@ -39,11 +42,10 @@ jobs:
3942
with:
4043
virtualenvs-create: true
4144
virtualenvs-in-project: true
42-
installer-parallel: true
4345

4446
- name: Load cached venv
4547
id: cached-poetry-dependencies
46-
uses: actions/cache@v2
48+
uses: actions/cache@v3
4749
with:
4850
path: .venv
4951
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
@@ -61,7 +63,7 @@ jobs:
6163

6264
- name: upload test results
6365
if: always()
64-
uses: actions/upload-artifact@v2
66+
uses: actions/upload-artifact@v3
6567
with:
6668
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
6769
path: test-results
@@ -74,7 +76,7 @@ jobs:
7476

7577
steps:
7678
- name: Download Artifacts
77-
uses: actions/download-artifact@v2
79+
uses: actions/download-artifact@v3
7880
with:
7981
path: artifacts
8082

@@ -101,11 +103,10 @@ jobs:
101103
with:
102104
virtualenvs-create: true
103105
virtualenvs-in-project: true
104-
installer-parallel: true
105106

106107
- name: Load cached venv
107108
id: cached-poetry-dependencies
108-
uses: actions/cache@v2
109+
uses: actions/cache@v3
109110
with:
110111
path: .venv
111112
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
@@ -153,11 +154,10 @@ jobs:
153154
with:
154155
virtualenvs-create: true
155156
virtualenvs-in-project: true
156-
installer-parallel: true
157157

158158
- name: Load cached venv
159159
id: cached-poetry-dependencies
160-
uses: actions/cache@v2
160+
uses: actions/cache@v3
161161
with:
162162
path: .venv
163163
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
@@ -191,19 +191,19 @@ jobs:
191191
run: poetry run npm run package
192192

193193
- name: Upload VSCode package
194-
uses: actions/upload-artifact@v2
194+
uses: actions/upload-artifact@v3
195195
with:
196196
name: vscode-package
197197
path: dist/robotcode*.vsix
198198

199199
- name: Upload python package
200-
uses: actions/upload-artifact@v2
200+
uses: actions/upload-artifact@v3
201201
with:
202202
name: python-package
203203
path: dist/*.tar.gz
204204

205205
- name: Upload python wheel package
206-
uses: actions/upload-artifact@v2
206+
uses: actions/upload-artifact@v3
207207
with:
208208
name: wheel-package
209209
path: dist/*.whl
@@ -230,11 +230,10 @@ jobs:
230230
with:
231231
virtualenvs-create: true
232232
virtualenvs-in-project: true
233-
installer-parallel: true
234233

235234
- name: Load cached venv
236235
id: cached-poetry-dependencies
237-
uses: actions/cache@v2
236+
uses: actions/cache@v3
238237
with:
239238
path: .venv
240239
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
@@ -256,15 +255,15 @@ jobs:
256255
- name: install node modules
257256
run: npm install --also=dev
258257

259-
- uses: actions/download-artifact@v2
258+
- uses: actions/download-artifact@v3
260259
with:
261260
name: vscode-package
262261
path: dist
263-
- uses: actions/download-artifact@v2
262+
- uses: actions/download-artifact@v3
264263
with:
265264
name: python-package
266265
path: dist
267-
- uses: actions/download-artifact@v2
266+
- uses: actions/download-artifact@v3
268267
with:
269268
name: wheel-package
270269
path: dist

0 commit comments

Comments
 (0)