merged test and publish again

This commit is contained in:
Julian Hammer
2020-12-15 12:58:41 +01:00
committed by Jan
parent 66ea9629ea
commit 2a2159e302

View File

@@ -3,7 +3,7 @@ name: test-n-publish
on: [push, pull_request]
jobs:
test:
test-n-publish:
runs-on: ubuntu-latest
strategy:
matrix:
@@ -28,24 +28,11 @@ jobs:
run: |
coverage run -p tests/all_tests.py
- uses: codecov/codecov-action@v1
- name: Build package
run: |
python setup.py build sdist
publish:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: jobs
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Set up Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Build package
run: |
python setup.py build sdist wheel
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
skip_existing: true