-
Notifications
You must be signed in to change notification settings - Fork 35
57 lines (45 loc) · 1.42 KB
/
CI-build.yaml
File metadata and controls
57 lines (45 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
name: Build and upload wheels
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, ubuntu-18.04, macos-10.15]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install wheel setuptools
pip install -r requirements.txt
- name: Build wheel
run: python setup.py bdist_wheel
- name: Install software
run: pip install --find-links=${{github.workspace}}/dist/ SimpleCRF
- name: Test import
run: python -c "import denseCRF, maxflow"
- name: Install deps for demos
run: pip install SimpleITK pillow matplotlib
- name: Test maxflow demo
run: cd ${{github.workspace}}/examples && python demo_maxflow.py 0
- name: Test denseCRF demo
run: cd ${{github.workspace}}/examples && python demo_densecrf.py 1
- name: Test denseCRF 3D demo
run: cd ${{github.workspace}}/examples && python demo_densecrf.py 1
- name: Upload Python wheel
uses: actions/upload-artifact@v2
with:
name: Python wheel
path: ${{github.workspace}}/dist/SimpleCRF-*.whl
if-no-files-found: error