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 11name : CI
2-
32on :
43 push :
54 branches : [master]
65 tags : ['v*']
76 pull_request :
87 branches : [master]
9-
108jobs :
119 test :
1210 runs-on : ubuntu-latest
1311 environment : ci
1412 strategy :
1513 matrix :
1614 python-version : ['3.8', '3.9', '3.10', '3.11']
17-
1815 steps :
1916 - uses : actions/checkout@v3
2017 with :
2118 fetch-depth : 0
22-
2319 - name : Set up Python ${{ matrix.python-version }}
2420 uses : actions/setup-python@v4
2521 with :
2622 python-version : ${{ matrix.python-version }}
2723 cache : ' pip'
28-
2924 - name : Install pandoc
3025 run : |
3126 sudo apt-get update
3227 sudo apt-get install pandoc
3328 pip install pypandoc
34-
3529 - name : Install npm
3630 run : |
3731 sudo npm install -g npm@latest || sudo npm install -g npm@9
38-
3932 - name : Install dependencies
4033 run : pip install 'tox<4' tox-gh-actions
41-
4234 - name : Run tests
4335 env :
4436 PYTHON_VERSION : ${{ matrix.python-version }}
4537 run : tox
46-
4738 - name : Install release dependencies
4839 if : github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
4940 run : |
@@ -53,11 +44,12 @@ jobs:
5344 @semantic-release/exec \
5445 @semantic-release/git \
5546 @semantic-release/github
56-
5747 - name : Semantic Release
5848 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 }}
5952 run : npx semantic-release
60-
6153 - name : Publish to PyPI
6254 if : startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.8'
6355 run : |
You can’t perform that action at this time.
0 commit comments