Skip to content

Commit 5174165

Browse files
authored
6533 update conda test config (#6535)
Fixes #6533 ### Description tested https://github.com/Project-MONAI/MONAI/actions/runs/5031522518 (windows tests not included -- took too long) ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: Wenqi Li <wenqil@nvidia.com>
1 parent 243fbe6 commit 5174165

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/conda.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
os: [ubuntu-latest]
22-
python-version: ["3.9"]
22+
python-version: ["3.9", "3.10"]
2323
runs-on: ${{ matrix.os }}
2424
env:
2525
QUICKTEST: True
@@ -36,24 +36,26 @@ jobs:
3636
with:
3737
auto-update-conda: true
3838
python-version: ${{ matrix.python-version }}
39-
- name: Install env (CPU ${{ runner.os }})
40-
shell: bash -l {0}
39+
auto-activate-base: false
40+
environment-file: environment-dev.yml
41+
activate-environment: monai
42+
- name: Env info (CPU ${{ runner.os }})
43+
shell: bash -el {0}
4144
run: |
4245
conda info
4346
conda list
44-
conda env create --file environment-dev.yml
4547
- if: runner.os == 'windows'
4648
name: Windows only install
47-
shell: bash -l {0}
49+
shell: bash -el {0}
4850
run: |
4951
conda activate monai
5052
# this `cpuonly` and -c conda-forge is needed to reduce the paging file size on a github instance
5153
# force to install `cpuonly==2.0.0` is to fix the same issue as:
5254
# https://github.com/pytorch/vision/issues/4240
5355
conda install pytorch torchvision torchaudio cpuonly==2.0.0 -c pytorch -c conda-forge
5456
conda deactivate
55-
- name: Test env(CPU ${{ runner.os }})
56-
shell: bash -l {0}
57+
- name: Test env (CPU ${{ runner.os }})
58+
shell: bash -el {0}
5759
run: |
5860
conda activate monai
5961
$(pwd)/runtests.sh --build --unittests

0 commit comments

Comments
 (0)