Skip to content

Commit 9795c9d

Browse files
committed
add PRs into main as pypi.yml trigger for testing the local wheel build
1 parent f2497e5 commit 9795c9d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/pypi.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
push:
88
branches:
99
- main
10+
pull_request:
11+
branches:
12+
- main
1013
release:
1114
types: [published]
1215

@@ -36,8 +39,8 @@ jobs:
3639
pip install 'mhkit[all]' --find-links dist/
3740
python -c "from mhkit import wave, river, tidal, dolfyn, power, loads, mooring, acoustics, qc, utils; print('All modules imported successfully')"
3841
39-
- name: Upload to Test PyPI
40-
if: github.event_name != 'release' && github.repository_owner == 'MHKiT-Software'
42+
- name: Upload to Test PyPI (commits to main only)
43+
if: github.event_name == 'push' && github.repository_owner == 'MHKiT-Software'
4144
uses: pypa/gh-action-pypi-publish@release/v1
4245
with:
4346
user: __token__

0 commit comments

Comments
 (0)