File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
-
3
2
on :
4
3
push :
5
4
branches : [master]
6
5
tags : ['v*']
7
6
pull_request :
8
7
branches : [master]
9
-
10
8
jobs :
11
9
test :
12
10
runs-on : ubuntu-latest
13
11
environment : ci
14
12
strategy :
15
13
matrix :
16
14
python-version : ['3.8', '3.9', '3.10', '3.11']
17
-
18
15
steps :
19
16
- uses : actions/checkout@v3
20
17
with :
21
18
fetch-depth : 0
22
-
23
19
- name : Set up Python ${{ matrix.python-version }}
24
20
uses : actions/setup-python@v4
25
21
with :
26
22
python-version : ${{ matrix.python-version }}
27
23
cache : ' pip'
28
-
29
24
- name : Install pandoc
30
25
run : |
31
26
sudo apt-get update
32
27
sudo apt-get install pandoc
33
28
pip install pypandoc
34
-
35
29
- name : Install npm
36
30
run : |
37
31
sudo npm install -g npm@latest || sudo npm install -g npm@9
38
-
39
32
- name : Install dependencies
40
33
run : pip install 'tox<4' tox-gh-actions
41
-
42
34
- name : Run tests
43
35
env :
44
36
PYTHON_VERSION : ${{ matrix.python-version }}
45
37
run : tox
46
-
47
38
- name : Install release dependencies
48
39
if : github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
49
40
run : |
@@ -53,11 +44,12 @@ jobs:
53
44
@semantic-release/exec \
54
45
@semantic-release/git \
55
46
@semantic-release/github
56
-
57
47
- name : Semantic Release
58
48
if : github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
49
+ env :
50
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
59
52
run : npx semantic-release
60
-
61
53
- name : Publish to PyPI
62
54
if : startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.8'
63
55
run : |
You can’t perform that action at this time.
0 commit comments