andreped commited on
Commit
cd925b1
1 Parent(s): 7770fa3

test sequential build-test-upload

Browse files
Files changed (1) hide show
  1. .github/workflows/build.yml +39 -22
.github/workflows/build.yml CHANGED
@@ -10,18 +10,13 @@ on:
10
 
11
  jobs:
12
  build:
13
- runs-on: ${{ matrix.os }}
14
- strategy:
15
- matrix:
16
- os: [windows-2019, ubuntu-18.04, macos-10.15]
17
- python-version: [3.6, 3.7, 3.8, 3.9]
18
-
19
  steps:
20
  - uses: actions/checkout@v1
21
- - name: Set up Python ${{ matrix.python-version }}
22
  uses: actions/setup-python@v2
23
  with:
24
- python-version: ${{ matrix.python-version }}
25
 
26
  - name: Install dependencies
27
  run: |
@@ -31,20 +26,42 @@ jobs:
31
  - name: Build wheel
32
  run: python setup.py bdist_wheel --universal
33
 
34
- - name: Install software
35
- run: pip install --find-links=${{github.workspace}}/dist/ lungtumormask
 
 
 
 
 
36
 
37
- - name: Test CLI
38
- run: lungtumormask --help
 
 
 
39
 
40
- - name: Debug
41
- run: |
42
- ls
43
- ls ${{github.workspace}}/dist/
44
 
45
- - name: Upload Python wheel
46
- uses: actions/upload-artifact@v2
47
- with:
48
- name: Python wheel
49
- path: ${{github.workspace}}/dist/lungtumormask-*.whl
50
- if-no-files-found: error
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  jobs:
12
  build:
13
+ runs-on: ubuntu-18.04
 
 
 
 
 
14
  steps:
15
  - uses: actions/checkout@v1
16
+ - name: Set up Python 3.6
17
  uses: actions/setup-python@v2
18
  with:
19
+ python-version: 3.6
20
 
21
  - name: Install dependencies
22
  run: |
 
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