Add Explicit hash_type Arguments and Device Fallback #3104
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: premerge-notebooks | |
| on: | |
| # quick tests of modified notebooks for every pull request | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| # automatically cancel the previously triggered workflows when there's a newer version | |
| group: build-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/checkout@v7 | |
| with: | |
| repository: Project-MONAI/MONAI | |
| path: monai | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| cache: 'pip' | |
| - name: Install MONAI | |
| id: monai-install | |
| env: | |
| PIP_NO_CACHE_DIR: "1" | |
| PIP_DISABLE_PIP_VERSION_CHECK: "1" | |
| BUILD_MONAI: 0 | |
| PIP_EXTRA_INDEX_URL: "https://download.pytorch.org/whl/cpu" # forces CPU PyTorch installation, should be faster | |
| run: | | |
| find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \; | |
| df -h | |
| which python | |
| python -m pip install -U pip wheel | |
| (cd monai; pip install .[all]) | |
| python -m pip install -r requirements.txt | |
| python -m pip list | |
| - name: Notebook quick check | |
| shell: bash | |
| run: | | |
| python -m monai.config | |
| git fetch origin main | |
| git diff --name-only origin/main | while read line | |
| do | |
| if [[ $line == *.ipynb ]] | |
| then | |
| date | |
| ./runner.sh -p " -and -wholename './${line}'" | |
| fi | |
| done |