From 69572515b848dfbd84640125e88b4f709f07d625 Mon Sep 17 00:00:00 2001 From: Yiheng Wang <68361391+yiheng-wang-nv@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:59:33 +0800 Subject: [PATCH] Use python3.9 in CI (#599) Fixes #598 . ### Description A few sentences describing the changes proposed in this pull request. ### Status **Ready/Work in progress/Hold** ### Please ensure all the checkboxes: - [x] Codeformat tests passed locally by running `./runtests.sh --codeformat`. - [ ] In-line docstrings updated. - [ ] Update `version` and `changelog` in `metadata.json` if changing an existing bundle. - [ ] Please ensure the naming rules in config files meet our requirements (please refer to: `CONTRIBUTING.md`). - [ ] Ensure versions of packages such as `monai`, `pytorch` and `numpy` are correct in `metadata.json`. - [ ] Descriptions should be consistent with the content, such as `eval_metrics` of the provided weights and TorchScript modules. - [ ] Files larger than 25MB are excluded and replaced by providing download links in `large_file.yml`. - [ ] Avoid using path that contains personal information within config files (such as use `/home/your_name/` for `"bundle_root"`). --------- Signed-off-by: Yiheng Wang --- .github/workflows/code-format-check.yml | 4 ++-- ci/run_premerge_gpu.sh | 2 +- ci/run_premerge_multi_gpu.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code-format-check.yml b/.github/workflows/code-format-check.yml index 3a7f81f1..6080ae6f 100644 --- a/.github/workflows/code-format-check.yml +++ b/.github/workflows/code-format-check.yml @@ -17,10 +17,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: cache weekly timestamp id: pip-cache run: | diff --git a/ci/run_premerge_gpu.sh b/ci/run_premerge_gpu.sh index 77c6327f..d5ae73c8 100755 --- a/ci/run_premerge_gpu.sh +++ b/ci/run_premerge_gpu.sh @@ -33,7 +33,7 @@ fi init_pipenv() { echo "initializing pip environment: $1" pipenv install update pip wheel - pipenv install --python=3.8 -r $1 + pipenv install --python=3.9 -r $1 export PYTHONPATH=$PWD } diff --git a/ci/run_premerge_multi_gpu.sh b/ci/run_premerge_multi_gpu.sh index ca4001d2..c00ae8e2 100755 --- a/ci/run_premerge_multi_gpu.sh +++ b/ci/run_premerge_multi_gpu.sh @@ -33,7 +33,7 @@ fi init_pipenv() { echo "initializing pip environment: $1" pipenv install update pip wheel - pipenv install --python=3.8 -r $1 + pipenv install --python=3.9 -r $1 export PYTHONPATH=$PWD }