Spaces:
Running
Running
indent test
Browse files- .github/workflows/build.yml +32 -32
.github/workflows/build.yml
CHANGED
|
@@ -26,42 +26,42 @@ jobs:
|
|
| 26 |
- name: Build wheel
|
| 27 |
run: python setup.py bdist_wheel --universal
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
| 26 |
- name: Build wheel
|
| 27 |
run: python setup.py bdist_wheel --universal
|
| 28 |
|
| 29 |
+
test:
|
| 30 |
+
needs: build
|
| 31 |
+
runs-on: ${{ matrix.os }}
|
| 32 |
+
strategy:
|
| 33 |
+
matrix:
|
| 34 |
+
os: [windows-2019, ubuntu-18.04, macos-10.15]
|
| 35 |
+
python-version: [3.6, 3.7, 3.8, 3.9]
|
| 36 |
|
| 37 |
+
steps:
|
| 38 |
+
- name: Download artifact
|
| 39 |
+
uses: actions/download-artifact@master
|
| 40 |
+
with:
|
| 41 |
+
name: "Python wheel"
|
| 42 |
|
| 43 |
+
- name: Install software
|
| 44 |
+
run: pip install --find-links=${{github.workspace}} lungtumormask
|
| 45 |
|
| 46 |
+
- name: Test CLI
|
| 47 |
+
run: lungtumormask --help
|
| 48 |
|
| 49 |
+
upload:
|
| 50 |
+
needs: test
|
| 51 |
+
runs-on: ubuntu-18.04
|
| 52 |
|
| 53 |
+
steps:
|
| 54 |
+
- name: Download artifact
|
| 55 |
+
uses: actions/download-artifact@master
|
| 56 |
+
with:
|
| 57 |
+
name: "Python wheel"
|
| 58 |
|
| 59 |
+
- name: Unzip
|
| 60 |
+
run: unzip "Python wheel" && cd "Python wheel" && ls
|
| 61 |
|
| 62 |
+
- name: Upload Python wheel
|
| 63 |
+
uses: actions/upload-artifact@v2
|
| 64 |
+
with:
|
| 65 |
+
name: Python wheel
|
| 66 |
+
path: lungtumormask-*.whl
|
| 67 |
+
if-no-files-found: error
|