File tree Expand file tree Collapse file tree 3 files changed +60
-8
lines changed Expand file tree Collapse file tree 3 files changed +60
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build :
13
+ name : ${{ matrix.name }}
14
+ runs-on : ${{ matrix.os }}
15
+ strategy :
16
+ matrix :
17
+ include :
18
+ - name : Linux py36
19
+ os : ubuntu-16.04
20
+ pyversion : ' 3.6'
21
+ - name : Linux py37
22
+ os : ubuntu-latest
23
+ pyversion : ' 3.7'
24
+ - name : Linux py38
25
+ os : ubuntu-latest
26
+ pyversion : ' 3.8'
27
+ # - name: Linux py39
28
+ # os: ubuntu-latest
29
+ # pyversion: '3.9'
30
+ - name : MacOS py38
31
+ os : macos-latest
32
+ pyversion : ' 3.8'
33
+ - name : Windows py38
34
+ os : windows-latest
35
+ pyversion : ' 3.8'
36
+
37
+ steps :
38
+ - uses : actions/checkout@v2
39
+ - name : Set up Python ${{ matrix.pyversion }}
40
+ uses : actions/setup-python@v2
41
+ with :
42
+ python-version : ${{ matrix.pyversion }}
43
+ - name : Install dependencies
44
+ run : |
45
+ python -m pip install --upgrade pip
46
+ pip install -U -r requirements.txt
47
+ pip install -q -U black flake8 pytest
48
+ - name : Lint (black and flake8)
49
+ run : |
50
+ black --check .
51
+ flake8 .
52
+ - name : Test with pytest
53
+ shell : bash
54
+ run : |
55
+ python setup.py install
56
+ rm -rf ./dash_slicer ./build ./egg-info
57
+ pytest -v .
Original file line number Diff line number Diff line change 3
3
plotly
4
4
dash
5
5
dash_core_components
6
+ scikit-image
Original file line number Diff line number Diff line change 11
11
VERSION = re .search (r"__version__ = \"(.*?)\"" , fh .read ()).group (1 )
12
12
13
13
14
- runtime_deps = [
15
- "pillow" ,
16
- "numpy" ,
17
- "plotly" ,
18
- "dash" ,
19
- "dash_core_components" ,
20
- "scikit-image" , # may not be needed eventually?
21
- ]
14
+ with open ("requirements.txt" ) as fh :
15
+ runtime_deps = [x .strip () for x in fh .read ().splitlines () if x .strip ()]
22
16
23
17
24
18
setup (
You can’t perform that action at this time.
0 commit comments