Skip to content

Commit

Permalink
ci: test packaging on PRs, too
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Nov 30, 2024
1 parent ea26ddc commit 3453b51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:

- uses: hynek/build-and-inspect-python-package@v2

# Upload to Test PyPI on every commit on main.
publish-test-release:
permissions:
contents: read
Expand All @@ -40,7 +39,9 @@ jobs:

name: Publish in-dev package to test.pypi.org
environment: publish-test-release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: |
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
(github.event.name == 'pull_request')
runs-on: ubuntu-latest
needs:
- pure-python-wheel-and-sdist
Expand Down

0 comments on commit 3453b51

Please sign in to comment.