Skip to content

Commit afefa12

Browse files
committed
ci: test packaging on PRs, too
1 parent ea26ddc commit afefa12

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131

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

34-
# Upload to Test PyPI on every commit on main.
3534
publish-test-release:
3635
permissions:
3736
contents: read
@@ -40,7 +39,9 @@ jobs:
4039

4140
name: Publish in-dev package to test.pypi.org
4241
environment: publish-test-release
43-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
42+
if: |
43+
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
44+
(github.event_name == 'pull_request')
4445
runs-on: ubuntu-latest
4546
needs:
4647
- pure-python-wheel-and-sdist

0 commit comments

Comments
 (0)