Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/weekly-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:
branches:
- dev
workflow_dispatch:
Comment thread
ericspod marked this conversation as resolved.
Outdated

env:
PYTHON_VER: '3.10'
Expand Down Expand Up @@ -70,6 +71,8 @@ jobs:
- name: Build distribution
run: |
export HEAD_COMMIT_ID=$(git rev-parse HEAD)
# remove git clone dependencies, see https://github.com/Project-MONAI/MONAI/issues/5882
sed -i /git+/d pyproject.toml
sed -i 's/name\ =\ "monai"$/name\ =\ "monai-weekly"/g' pyproject.toml
echo "__commit_id__ = \"$HEAD_COMMIT_ID\"" >> monai/__init__.py
git diff pyproject.toml monai/__init__.py
Expand All @@ -90,6 +93,13 @@ jobs:
pip install dist/*.whl
pip list
(cd "$(mktemp -d)" && python -c 'import monai; print(monai.__version__)')
- name: Publish to Test PyPI
if: github.event_name != 'schedule' # only test publish on PR
Comment thread
ericspod marked this conversation as resolved.
Outdated
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
- name: Publish to PyPI
if: github.event_name == 'schedule' # only publish on cron run
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
Loading