File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 21
21
conda activate jupyter-sphinx
22
22
python -m ipykernel install --user --name python3 --display-name "Python3"
23
23
pip install --user .
24
-
24
+
25
25
cd doc
26
26
make html
27
27
35
35
36
36
workflows :
37
37
version : 2
38
- default :
38
+ build_docs :
39
39
jobs :
40
40
- build_docs
Original file line number Diff line number Diff line change @@ -4,9 +4,41 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
7
+ tests :
8
+
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ python-version : [3.5, 3.6, 3.7]
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Set up Python ${{ matrix.python-version }}
17
+ uses : actions/setup-python@v1
18
+ with :
19
+ python-version : ${{ matrix.python-version }}
20
+
21
+ - name : Setup Miniconda
22
+
23
+
24
+ - name : Install dependencies
25
+ run : |
26
+ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
27
+ bash miniconda.sh -b -p $HOME/miniconda
28
+ export PATH="$HOME/miniconda/bin:$PATH"
29
+ source "$HOME"/miniconda/etc/profile.d/conda.sh
30
+ conda config --set always_yes yes --set changeps1 no
31
+ conda env create -f environment.yml
32
+ conda activate jupyter-sphinx
33
+ python -m ipykernel install --user --name python3 --display-name "Python3"
34
+ pip install .
35
+
36
+ pytest
37
+
7
38
publish :
8
39
9
40
name : Publish to PyPi
41
+ needs : [tests]
10
42
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
11
43
runs-on : ubuntu-latest
12
44
steps :
You can’t perform that action at this time.
0 commit comments