We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3031a commit 551f101Copy full SHA for 551f101
.github/workflows/tests.yml
@@ -3,11 +3,11 @@
3
4
name: Python package
5
6
-on:
7
- push:
8
- branches: [ master ]
9
- pull_request:
10
+on: [push, pull_request]
+ # push:
+ # branches: [ master ]
+ # pull_request:
11
12
jobs:
13
build:
@@ -34,3 +34,15 @@ jobs:
34
run: |
35
pip install pytest
36
pytest tests/
37
+
38
+ - name: Build package
39
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
40
+ run: |
41
+ pip install wheel
42
+ python setup.py sdist bdist_wheel
43
+ - name: Publish to PyPi
44
45
+ uses: pypa/[email protected]
46
+ with:
47
+ user: __token__
48
+ password: ${{ secrets.PYPI_KEY }}
0 commit comments