Skip to content

Commit

Permalink
Merge pull request #262 from hamcrest/ci-release-check-on-pr
Browse files Browse the repository at this point in the history
ci: test packaging on PRs, too
  • Loading branch information
offbyone authored Nov 30, 2024
2 parents ea26ddc + 215af38 commit 373ed31
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 373ed31

Please sign in to comment.