Skip to content
Open
Changes from all commits
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
16 changes: 14 additions & 2 deletions .github/workflows/weekly-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ permissions:
on:
schedule:
- cron: "0 2 * * 0" # 02:00 of every Sunday
pull_request:
branches:
- dev

jobs:
static-checks:
if: github.event_name == 'schedule' # only check on cron run
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -53,9 +57,10 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: '3.10'
cache: 'pip'
- name: Install setuptools
run: |
python -m pip install --user --upgrade setuptools wheel packaging
python -m pip install --user --upgrade pip setuptools wheel packaging
- name: Build distribution
run: |
export HEAD_COMMIT_ID=$(git rev-parse HEAD)
Expand All @@ -72,9 +77,16 @@ jobs:
git tag "1.7.dev${YEAR_WEEK}"
git log -1
git tag --list
pip install . --extra-index-url "https://download.pytorch.org/whl/cpu"
python setup.py sdist bdist_wheel

ls -lh dist
- name: Test Installation
run: |
pip uninstall monai-weekly -y
pip install dist/*.whl
Comment thread
ericspod marked this conversation as resolved.
pip list
- name: Publish to PyPI
if: github.event_name == 'schedule' # only publish on cron run
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
Loading