Skip to content

Commit 170be7d

Browse files
authored
Fix ci deprecated error (#731)
Fixes # . ### Description Fix ci deprecated error ### Status **Ready** ### Please ensure all the checkboxes: <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [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: YunLiu <55491388+KumoLiu@users.noreply.github.com>
1 parent 44560c4 commit 170be7d

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/code-format-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
flake8-py3:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020
- name: Set up Python 3.10
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v4
2222
with:
2323
python-version: 3.10.14
2424
- name: cache weekly timestamp
2525
id: pip-cache
2626
run: |
2727
echo "::set-output name=datew::$(date '+%Y-%V')"
2828
- name: cache for pip
29-
uses: actions/cache@v2
29+
uses: actions/cache@v4
3030
id: cache
3131
with:
3232
path: ~/.cache/pip

.github/workflows/premerge-cpu.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
premerge-cpu:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020
- name: Set up Python 3.10
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v4
2222
with:
2323
python-version: 3.10.14
2424
- name: cache weekly timestamp
2525
id: pip-cache
2626
run: |
2727
echo "::set-output name=datew::$(date '+%Y-%V')"
2828
- name: cache for pip
29-
uses: actions/cache@v2
29+
uses: actions/cache@v4
3030
id: cache
3131
with:
3232
path: ~/.cache/pip

.github/workflows/weekly-tests-cpu.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
get-list:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- name: Set up Python 3.9
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: 3.9
1919
- name: cache weekly timestamp
2020
id: pip-cache
2121
run: |
2222
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
2323
- name: cache for pip
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
id: cache
2626
with:
2727
path: ~/.cache/pip
@@ -46,17 +46,17 @@ jobs:
4646
bundle: ${{ fromJson(needs.get-list.outputs.list) }}
4747
runs-on: ubuntu-latest
4848
steps:
49-
- uses: actions/checkout@v2
49+
- uses: actions/checkout@v4
5050
- name: Set up Python 3.9
51-
uses: actions/setup-python@v2
51+
uses: actions/setup-python@v4
5252
with:
5353
python-version: 3.9
5454
- name: cache weekly timestamp
5555
id: pip-cache
5656
run: |
5757
echo "::set-output name=datew::$(date '+%Y-%V')"
5858
- name: cache for pip
59-
uses: actions/cache@v2
59+
uses: actions/cache@v4
6060
id: cache
6161
with:
6262
path: ~/.cache/pip

0 commit comments

Comments
 (0)