refactored CI
Browse files- .github/workflows/build.yml +30 -23
.github/workflows/build.yml
CHANGED
@@ -9,20 +9,6 @@ on:
|
|
9 |
jobs:
|
10 |
build:
|
11 |
runs-on: ${{ matrix.os }}
|
12 |
-
strategy:
|
13 |
-
matrix:
|
14 |
-
include:
|
15 |
-
- os: ubuntu-18.04
|
16 |
-
TARGET: ubuntu
|
17 |
-
CMD_BUILD: pip install git+https://github.com/andreped/livermask.git
|
18 |
-
|
19 |
-
- os: macos-10.15
|
20 |
-
TARGET: macos
|
21 |
-
CMD_BUILD: pip install git+https://github.com/andreped/livermask.git
|
22 |
-
|
23 |
-
- os: windows-2019
|
24 |
-
TARGET: windows
|
25 |
-
CMD_BUILD: pip install git+https://github.com/andreped/livermask.git
|
26 |
steps:
|
27 |
- uses: actions/checkout@v1
|
28 |
- name: Set up Python 3.7
|
@@ -36,8 +22,36 @@ jobs:
|
|
36 |
- name: Build wheel
|
37 |
run: python setup.py bdist_wheel --universal
|
38 |
|
39 |
-
- name:
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
- name: Test CLI
|
43 |
run: livermask --help
|
@@ -54,13 +68,6 @@ jobs:
|
|
54 |
run: |
|
55 |
livermask --input samples --output samples --verbose --vessels
|
56 |
|
57 |
-
- name: Upload Python wheel
|
58 |
-
uses: actions/upload-artifact@v2
|
59 |
-
with:
|
60 |
-
name: Python wheel
|
61 |
-
path: ${{github.workspace}}/dist/livermask-*.whl
|
62 |
-
if-no-files-found: error
|
63 |
-
|
64 |
conda:
|
65 |
needs: build
|
66 |
runs-on: ubuntu-20.04
|
|
|
9 |
jobs:
|
10 |
build:
|
11 |
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
steps:
|
13 |
- uses: actions/checkout@v1
|
14 |
- name: Set up Python 3.7
|
|
|
22 |
- name: Build wheel
|
23 |
run: python setup.py bdist_wheel --universal
|
24 |
|
25 |
+
- name: Upload Python wheel
|
26 |
+
uses: actions/upload-artifact@v2
|
27 |
+
with:
|
28 |
+
name: Python wheel
|
29 |
+
path: ${{github.workspace}}/dist/livermask-*.whl
|
30 |
+
if-no-files-found: error
|
31 |
+
|
32 |
+
test:
|
33 |
+
needs: build
|
34 |
+
runs-on: ${{ matrix.os }}
|
35 |
+
strategy:
|
36 |
+
# max-parallel: 10
|
37 |
+
matrix:
|
38 |
+
os: [ windows-2019, ubuntu-20.04, macos-11 ]
|
39 |
+
python-version: [ 3.7 ]
|
40 |
+
|
41 |
+
steps:
|
42 |
+
- uses: actions/checkout@v1
|
43 |
+
- name: Set up Python ${{ matrix.python-version }}
|
44 |
+
uses: actions/setup-python@v2
|
45 |
+
with:
|
46 |
+
python-version: ${{ matrix.python-version }}
|
47 |
+
|
48 |
+
- name: Download artifact
|
49 |
+
uses: actions/download-artifact@master
|
50 |
+
with:
|
51 |
+
name: "Python wheel"
|
52 |
+
|
53 |
+
- name: Install wheel
|
54 |
+
run: pip install --find-links=${{github.workspace}} livermask
|
55 |
|
56 |
- name: Test CLI
|
57 |
run: livermask --help
|
|
|
68 |
run: |
|
69 |
livermask --input samples --output samples --verbose --vessels
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
conda:
|
72 |
needs: build
|
73 |
runs-on: ubuntu-20.04
|