File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 42
42
update-conda : true
43
43
python-version : ${{ matrix.python-version }}
44
44
conda-channels : anaconda, conda-forge
45
+ activate-conda : true
45
46
46
47
# TODO: add conda/pip caching
47
48
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
54
55
# restore-keys: |
55
56
# ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pytorch-version }}-pip-
56
57
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
-
64
58
- name : Install stable PyTorch version
65
59
if : matrix.pytorch-version <= 1.6
66
60
run : |
76
70
- name : Install dependencies
77
71
run : |
78
72
# 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
80
74
python --version
81
75
conda info
82
76
conda list
85
79
- name : Reinstall Horovod if necessary
86
80
if : runner.os != 'windows' && matrix.python-version != '3.8'
87
81
run : |
88
- # conda activate ci-env
82
+ # conda activate base
89
83
HOROVOD_BUILT=$(python -c "import horovod.torch; horovod.torch.nccl_built(); print('SUCCESS')")
90
84
if [[ $HOROVOD_BUILT != "SUCCESS" ]]; then
91
85
pip uninstall -y horovod
103
97
104
98
- name : Tests
105
99
run : |
106
- # conda activate ci-env
100
+ # conda activate base
107
101
# NOTE: run coverage on tests does not propagare faler status for Win, https://github.com/nedbat/coveragepy/issues/1003
108
102
python -m pytest pytorch_lightning tests pl_examples -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
109
103
# coverage report
You can’t perform that action at this time.
0 commit comments