File tree 2 files changed +63
-0
lines changed
2 files changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ on : [status]
2
+
3
+ jobs :
4
+ circleci_artifacts_redirector_job :
5
+ runs-on : ubuntu-latest
6
+ name : Run CircleCI artifacts redirector
7
+ steps :
8
+ - name : GitHub Action step
9
+ uses : larsoner/circleci-artifacts-redirector-action@master
10
+ with :
11
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
12
+ artifact-path : 0/html/index.html
Original file line number Diff line number Diff line change
1
+ name : continuous-integration
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+
7
+ docs :
8
+
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ python-version : [3.6, 3.7, 3.8]
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
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install -e .[dev,sphinx]
24
+
25
+ - name : Build docs
26
+ run : |
27
+ cd doc
28
+ make html
29
+
30
+ publish :
31
+
32
+ name : Publish to PyPi
33
+ needs : [docs]
34
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - name : Checkout source
38
+ uses : actions/checkout@v2
39
+ - name : Set up Python 3.7
40
+ uses : actions/setup-python@v1
41
+ with :
42
+ python-version : 3.7
43
+ - name : Build package
44
+ run : |
45
+ pip install wheel
46
+ python setup.py sdist bdist_wheel
47
+ - name : Publish
48
+
49
+ with :
50
+ user : __token__
51
+ password : ${{ secrets.PYPI_KEY }}
You can’t perform that action at this time.
0 commit comments