diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index fe73818..155b375 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -4,6 +4,8 @@ name: PyPI Release on: # Trigger the workflow on push or pull request, but only for the main branch push: branches: [main] + pull_request: + branches: [main] release: types: [published] @@ -28,6 +30,14 @@ jobs: - name: Check package run: twine check dist/* + - name: Install pip + run: | + pip install -U pip + pip list + - name: Install package + run: | + pip install dist/*.tar.gz + # We do this, since failures on test.pypi aren't that bad - name: Publish to Test PyPI if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'