diff --git a/.github/workflows/test-n-publish.yml b/.github/workflows/test-n-publish.yml index 3610596..2a150d2 100644 --- a/.github/workflows/test-n-publish.yml +++ b/.github/workflows/test-n-publish.yml @@ -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