Spaces:
Running
Running
upload job not required, added upload after build - will only make wheel available if entire CI succeeds
Browse files- .github/workflows/build.yml +8 -21
.github/workflows/build.yml
CHANGED
|
@@ -26,6 +26,13 @@ jobs:
|
|
| 26 |
- name: Build wheel
|
| 27 |
run: python setup.py bdist_wheel --universal
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
test:
|
| 30 |
needs: build
|
| 31 |
runs-on: ${{ matrix.os }}
|
|
@@ -44,24 +51,4 @@ jobs:
|
|
| 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
|
|
|
|
| 26 |
- name: Build wheel
|
| 27 |
run: python setup.py bdist_wheel --universal
|
| 28 |
|
| 29 |
+
- name: Upload Python wheel
|
| 30 |
+
uses: actions/upload-artifact@v2
|
| 31 |
+
with:
|
| 32 |
+
name: Python wheel
|
| 33 |
+
path: ${{github.workspace}}/dist/lungtumormask-*.whl
|
| 34 |
+
if-no-files-found: error
|
| 35 |
+
|
| 36 |
test:
|
| 37 |
needs: build
|
| 38 |
runs-on: ${{ matrix.os }}
|
|
|
|
| 51 |
run: pip install --find-links=${{github.workspace}} lungtumormask
|
| 52 |
|
| 53 |
- name: Test CLI
|
| 54 |
+
run: lungtumormask --help
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|