42
42
uses : actions/setup-python@v1
43
43
with :
44
44
python-version : " 3.8"
45
+ - uses : actions/cache@v2
46
+ with :
47
+ path : ${{ env.pythonLocation }}
48
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
45
49
- name : Install dependencies
46
50
run : |
47
51
python -m pip install --upgrade pip
65
69
uses : actions/setup-python@v1
66
70
with :
67
71
python-version : ${{ matrix.python-version }}
72
+ - uses : actions/cache@v2
73
+ with :
74
+ path : ${{ env.pythonLocation }}
75
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
68
76
- name : Install dependencies
69
77
run : |
70
78
python -m pip install --upgrade pip
88
96
uses : actions/setup-python@v1
89
97
with :
90
98
python-version : " 3.7"
99
+ - uses : actions/cache@v2
100
+ with :
101
+ path : ${{ env.pythonLocation }}
102
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
91
103
- name : Install dependencies
92
104
run : |
93
105
python -m pip install --upgrade pip
@@ -117,11 +129,15 @@ jobs:
117
129
run : |
118
130
sudo apt-get update -y
119
131
sudo apt-get install -y libyaml-0-2 libyaml-dev
132
+ - uses : actions/cache@v2
133
+ with :
134
+ path : ${{ env.pythonLocation }}
135
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
120
136
- name : Install dependencies
121
137
run : |
122
138
python -m pip install --upgrade pip
123
139
python -m pip install coveralls poetry wheel
124
- python -m pip install .[nodocs ]
140
+ python -m pip install .[all ]
125
141
git config --global --add user.name "Renku @ SDSC"
126
142
git config --global --add user.email "[email protected] "
127
143
- name : Test with pytest
@@ -157,11 +173,15 @@ jobs:
157
173
run : |
158
174
sudo apt-get update -y
159
175
sudo apt-get install -y libyaml-0-2 libyaml-dev
176
+ - uses : actions/cache@v2
177
+ with :
178
+ path : ${{ env.pythonLocation }}
179
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
160
180
- name : Install dependencies
161
181
run : |
162
182
python -m pip install --upgrade pip
163
183
python -m pip install coveralls poetry wheel
164
- python -m pip install .[nodocs ]
184
+ python -m pip install .[all ]
165
185
git config --global --add user.name "Renku @ SDSC"
166
186
git config --global --add user.email "[email protected] "
167
187
- name : Test with pytest
@@ -202,11 +222,15 @@ jobs:
202
222
run : |
203
223
sudo apt-get update -y
204
224
sudo apt-get install -y libyaml-0-2 libyaml-dev
225
+ - uses : actions/cache@v2
226
+ with :
227
+ path : ${{ env.pythonLocation }}
228
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
205
229
- name : Install dependencies
206
230
run : |
207
231
python -m pip install --upgrade pip
208
232
python -m pip install coveralls poetry wheel
209
- python -m pip install .[nodocs ]
233
+ python -m pip install .[all ]
210
234
git config --global --add user.name "Renku @ SDSC"
211
235
git config --global --add user.email "[email protected] "
212
236
- name : Test with pytest
@@ -247,11 +271,15 @@ jobs:
247
271
run : |
248
272
sudo apt-get update -y
249
273
sudo apt-get install -y libyaml-0-2 libyaml-dev
274
+ - uses : actions/cache@v2
275
+ with :
276
+ path : ${{ env.pythonLocation }}
277
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
250
278
- name : Install dependencies
251
279
run : |
252
280
python -m pip install --upgrade pip
253
281
python -m pip install coveralls poetry wheel
254
- python -m pip install .[nodocs ]
282
+ python -m pip install .[all ]
255
283
git config --global --add user.name "Renku @ SDSC"
256
284
git config --global --add user.email "[email protected] "
257
285
- name : Test with pytest
@@ -283,14 +311,18 @@ jobs:
283
311
uses : actions/setup-python@v1
284
312
with :
285
313
python-version : ${{ matrix.python-version }}
314
+ - uses : actions/cache@v2
315
+ with :
316
+ path : ${{ env.pythonLocation }}
317
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
286
318
- name : Install dependencies
287
319
run : |
288
320
brew update || true
289
321
brew unlink git-lfs || true
290
322
curl -L https://raw.githubusercontent.com/Homebrew/homebrew-core/43842898fd3ff43273466052722f5ba2789196cb/Formula/git-lfs.rb > git-lfs.rb && brew install git-lfs.rb && rm git-lfs.rb
291
323
brew install shellcheck node || brew link --overwrite node
292
324
python -m pip install --upgrade pip
293
- python -m pip install wheel twine
325
+ python -m pip install wheel
294
326
python -m pip install .[all]
295
327
git config --global --add user.name "Renku @ SDSC"
296
328
git config --global --add user.email "[email protected] "
@@ -316,14 +348,18 @@ jobs:
316
348
uses : actions/setup-python@v1
317
349
with :
318
350
python-version : ${{ matrix.python-version }}
351
+ - uses : actions/cache@v2
352
+ with :
353
+ path : ${{ env.pythonLocation }}
354
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
319
355
- name : Install dependencies
320
356
run : |
321
357
brew update || true
322
358
brew unlink git-lfs || true
323
359
curl -L https://raw.githubusercontent.com/Homebrew/homebrew-core/43842898fd3ff43273466052722f5ba2789196cb/Formula/git-lfs.rb > git-lfs.rb && brew install git-lfs.rb && rm git-lfs.rb
324
360
brew install shellcheck node || brew link --overwrite node
325
361
python -m pip install --upgrade pip
326
- python -m pip install wheel twine
362
+ python -m pip install wheel
327
363
python -m pip install .[all]
328
364
git config --global --add user.name "Renku @ SDSC"
329
365
git config --global --add user.email "[email protected] "
@@ -355,14 +391,18 @@ jobs:
355
391
uses : actions/setup-python@v1
356
392
with :
357
393
python-version : ${{ matrix.python-version }}
394
+ - uses : actions/cache@v2
395
+ with :
396
+ path : ${{ env.pythonLocation }}
397
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
358
398
- name : Install dependencies
359
399
run : |
360
400
brew update || true
361
401
brew unlink git-lfs || true
362
402
curl -L https://raw.githubusercontent.com/Homebrew/homebrew-core/43842898fd3ff43273466052722f5ba2789196cb/Formula/git-lfs.rb > git-lfs.rb && brew install git-lfs.rb && rm git-lfs.rb
363
403
brew install shellcheck node || brew link --overwrite node
364
404
python -m pip install --upgrade pip
365
- python -m pip install wheel twine
405
+ python -m pip install wheel
366
406
python -m pip install .[all]
367
407
git config --global --add user.name "Renku @ SDSC"
368
408
git config --global --add user.email "[email protected] "
@@ -394,14 +434,18 @@ jobs:
394
434
uses : actions/setup-python@v1
395
435
with :
396
436
python-version : ${{ matrix.python-version }}
437
+ - uses : actions/cache@v2
438
+ with :
439
+ path : ${{ env.pythonLocation }}
440
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
397
441
- name : Install dependencies
398
442
run : |
399
443
brew update || true
400
444
brew unlink git-lfs || true
401
445
curl -L https://raw.githubusercontent.com/Homebrew/homebrew-core/43842898fd3ff43273466052722f5ba2789196cb/Formula/git-lfs.rb > git-lfs.rb && brew install git-lfs.rb && rm git-lfs.rb
402
446
brew install shellcheck node || brew link --overwrite node
403
447
python -m pip install --upgrade pip
404
- python -m pip install wheel twine
448
+ python -m pip install wheel
405
449
python -m pip install .[all]
406
450
git config --global --add user.name "Renku @ SDSC"
407
451
git config --global --add user.email "[email protected] "
@@ -431,11 +475,15 @@ jobs:
431
475
run : |
432
476
sudo apt-get update -y
433
477
sudo apt-get install -y libyaml-0-2 libyaml-dev
478
+ - uses : actions/cache@v2
479
+ with :
480
+ path : ${{ env.pythonLocation }}
481
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
434
482
- name : Install dependencies
435
483
run : |
436
484
python -m pip install --upgrade pip
437
485
python -m pip install coveralls wheel
438
- python -m pip install .[nodocs ]
486
+ python -m pip install .[all ]
439
487
git config --global --add user.name "Renku @ SDSC"
440
488
git config --global --add user.email "[email protected] "
441
489
- name : Test with pytest
@@ -486,11 +534,15 @@ jobs:
486
534
run : |
487
535
sudo apt-get update -y
488
536
sudo apt-get install -y libyaml-0-2 libyaml-dev
537
+ - uses : actions/cache@v2
538
+ with :
539
+ path : ${{ env.pythonLocation }}
540
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
489
541
- name : Install dependencies
490
542
run : |
491
543
python -m pip install --upgrade pip
492
544
python -m pip install coveralls wheel
493
- python -m pip install .[nodocs ]
545
+ python -m pip install .[all ]
494
546
git config --global --add user.name "Renku @ SDSC"
495
547
git config --global --add user.email "[email protected] "
496
548
- name : Test with pytest
@@ -538,6 +590,10 @@ jobs:
538
590
uses : actions/setup-python@v1
539
591
with :
540
592
python-version : ${{ matrix.python-version }}
593
+ - uses : actions/cache@v2
594
+ with :
595
+ path : ${{ env.pythonLocation }}
596
+ key : ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{poetry.lock}}
541
597
- name : Install dependencies
542
598
run : |
543
599
brew update || true
@@ -585,8 +641,6 @@ jobs:
585
641
- name : Install dependencies
586
642
run : |
587
643
python -m pip install --upgrade pip
588
- pip install poetry wheel twine
589
- python -m pip install .[all]
590
644
git config --global --add user.name "Renku @ SDSC"
591
645
git config --global --add user.email "[email protected] "
592
646
- name : Tag if necessary
@@ -595,13 +649,10 @@ jobs:
595
649
renku --version
596
650
export GIT_TAG=$(renku --version)
597
651
git tag $GIT_TAG
598
- - name : Build Package
599
- run : poetry build
600
- - name : Publish a Python distribution to PyPI
601
- uses : pypa/gh-action-pypi-publish@master
652
+ - name : Build and publish to pypi
653
+
602
654
with :
603
- user : __token__
604
- password : ${{ secrets.PYPI_ACCESS_TOKEN }}
655
+ pypi_token : ${{ secrets.PYPI_ACCESS_TOKEN }}
605
656
606
657
build-images :
607
658
runs-on : ubuntu-latest
0 commit comments