andreped commited on
Commit
759a0d0
·
1 Parent(s): 470e720
Files changed (1) hide show
  1. .github/workflows/build.yml +43 -0
.github/workflows/build.yml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Build and upload wheels
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - '*'
7
+ pull_request:
8
+ branches:
9
+ - '*'
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: pip install wheel setuptools
28
+
29
+ - name: Build wheel
30
+ run: python setup.py bdist_wheel --universal
31
+
32
+ - name: Install software
33
+ run: pip install --find-links=${{github.workspace}}/dist/ lungtumormask
34
+
35
+ - name: Test CLI
36
+ run: lungtumormask --help
37
+
38
+ - name: Upload Python wheel
39
+ uses: actions/upload-artifact@v2
40
+ with:
41
+ name: Python wheel
42
+ path: ${{github.workspace}}/dist/lungtumormask-*.whl
43
+ if-no-files-found: error