Skip to content

Commit 63d52b0

Browse files
committed
Fixing git dependency issues with weekly build
Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent 605611b commit 63d52b0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/weekly-preview.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
pull_request:
1010
branches:
1111
- dev
12+
workflow_dispatch:
1213

1314
env:
1415
PYTHON_VER: '3.10'
@@ -70,6 +71,8 @@ jobs:
7071
- name: Build distribution
7172
run: |
7273
export HEAD_COMMIT_ID=$(git rev-parse HEAD)
74+
# remove git clone dependencies, see https://github.com/Project-MONAI/MONAI/issues/5882
75+
sed -i /git+/d pyproject.toml
7376
sed -i 's/name\ =\ "monai"$/name\ =\ "monai-weekly"/g' pyproject.toml
7477
echo "__commit_id__ = \"$HEAD_COMMIT_ID\"" >> monai/__init__.py
7578
git diff pyproject.toml monai/__init__.py
@@ -90,6 +93,13 @@ jobs:
9093
pip install dist/*.whl
9194
pip list
9295
(cd "$(mktemp -d)" && python -c 'import monai; print(monai.__version__)')
96+
- name: Publish to Test PyPI
97+
if: github.event_name != 'schedule' # only test publish on PR
98+
uses: pypa/gh-action-pypi-publish@release/v1
99+
with:
100+
repository-url: https://test.pypi.org/legacy/
101+
user: __token__
102+
password: ${{ secrets.TEST_PYPI_TOKEN }}
93103
- name: Publish to PyPI
94104
if: github.event_name == 'schedule' # only publish on cron run
95105
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)