Spaces:
Running
Running
Added CI for making release wheel
Browse files
.github/workflows/release.yml
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Build
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- '*'
|
7 |
+
pull_request:
|
8 |
+
branches:
|
9 |
+
- '*'
|
10 |
+
workflow_dispatch:
|
11 |
+
|
12 |
+
jobs:
|
13 |
+
build:
|
14 |
+
runs-on: ubuntu-20.04
|
15 |
+
steps:
|
16 |
+
- uses: actions/checkout@v1
|
17 |
+
- name: Set up Python 3.7
|
18 |
+
uses: actions/setup-python@v2
|
19 |
+
with:
|
20 |
+
python-version: 3.7
|
21 |
+
|
22 |
+
- name: Install dependencies
|
23 |
+
run: |
|
24 |
+
pip install --upgrade pip
|
25 |
+
pip install wheel setuptools
|
26 |
+
|
27 |
+
- name: Build wheel
|
28 |
+
run: python setup.py bdist_wheel --universal
|
29 |
+
|
30 |
+
- name: Upload Python wheel
|
31 |
+
uses: actions/upload-artifact@v2
|
32 |
+
with:
|
33 |
+
name: Python wheel
|
34 |
+
path: ${{github.workspace}}/dist/lungtumormask-*.whl
|
35 |
+
if-no-files-found: error
|