Skip to content

Commit a405bcb

Browse files
authored
Add release
1 parent 6b014e2 commit a405bcb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
python-version: [3.6, 3.7]
1313

1414
steps:
15-
- uses: actions/checkout@v1
15+
- name: Checkout
16+
uses: actions/checkout@v1
1617
- name: Set up Python ${{ matrix.python-version }}
1718
uses: actions/setup-python@v1
1819
with:
@@ -32,6 +33,13 @@ jobs:
3233
run: |
3334
pip install pytest pytest-cov
3435
pytest . --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html
35-
- uses: codecov/[email protected]
36+
- name: Coverage Upload
37+
uses: codecov/[email protected]
3638
with:
3739
token: ${{secrets.CODECOV_TOKEN}}
40+
- name: Publish package
41+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
42+
uses: pypa/gh-action-pypi-publish@master
43+
with:
44+
user: __token__
45+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)