Skip to content

Commit 40f3c19

Browse files
committed
conda
1 parent d7cf484 commit 40f3c19

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/pt-testing.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
update-conda: true
4343
python-version: ${{ matrix.python-version }}
4444
conda-channels: anaconda, conda-forge
45+
activate-conda: true
4546

4647
# TODO: add conda/pip caching
4748
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
@@ -54,13 +55,6 @@ jobs:
5455
# restore-keys: |
5556
# ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pytorch-version }}-pip-
5657

57-
- name: Create conda
58-
run: |
59-
conda init bash
60-
# conda create --name ci-env
61-
# conda activate ci-env
62-
shell: bash
63-
6458
- name: Install stable PyTorch version
6559
if: matrix.pytorch-version <= 1.6
6660
run: |
@@ -76,7 +70,7 @@ jobs:
7670
- name: Install dependencies
7771
run: |
7872
# python -m pip install --upgrade --user pip
79-
HOROVOD_BUILD_ARCH_FLAGS="-mfma" conda env update --file environment.yml # --name ci-env
73+
HOROVOD_BUILD_ARCH_FLAGS="-mfma" conda env update --file environment.yml --name base
8074
python --version
8175
conda info
8276
conda list
@@ -85,7 +79,7 @@ jobs:
8579
- name: Reinstall Horovod if necessary
8680
if: runner.os != 'windows' && matrix.python-version != '3.8'
8781
run: |
88-
# conda activate ci-env
82+
# conda activate base
8983
HOROVOD_BUILT=$(python -c "import horovod.torch; horovod.torch.nccl_built(); print('SUCCESS')")
9084
if [[ $HOROVOD_BUILT != "SUCCESS" ]]; then
9185
pip uninstall -y horovod
@@ -103,7 +97,7 @@ jobs:
10397

10498
- name: Tests
10599
run: |
106-
# conda activate ci-env
100+
# conda activate base
107101
# NOTE: run coverage on tests does not propagare faler status for Win, https://github.com/nedbat/coveragepy/issues/1003
108102
python -m pytest pytorch_lightning tests pl_examples -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
109103
# coverage report

0 commit comments

Comments
 (0)