@@ -40,24 +40,15 @@ jobs:
40
40
echo "::endgroup::"
41
41
42
42
echo "::group::Setup virtual environment"
43
- if [[ ${{ inputs.python3-minor-version }} -gt 7 ]];
44
- then
45
- conda install -y python=${python_version} mkl mkl-include conda-build pyyaml numpy ipython
46
- conda install -y -c conda-forge libpython-static=${python_version}
47
- conda install -y pytorch torchvision torchaudio cpuonly -c pytorch
48
- conda clean -ya;
49
- else
50
- conda deactivate
51
- pip install virtualenv
52
- git clone https://github.com/pyenv/pyenv.git ~/.pyenv
53
- export CFLAGS="-fPIC -g"
54
- ~/.pyenv/bin/pyenv install --force ${python_version}
55
- virtualenv -p ~/.pyenv/versions/$(~/.pyenv/bin/pyenv latest ${python_version})/bin/python3 ~/venvs/multipy
56
- source ~/venvs/multipy/bin/activate
57
- pip install \
58
- torch torchvision torchaudio \
59
- --extra-index-url https://download.pytorch.org/whl/cpu;
60
- fi
43
+ echo "conda install -y python=${python_version}"
44
+ conda install -y python=${python_version}
45
+ echo "conda install -y -c conda-forge libpython-static=${python_version}"
46
+ conda install -y -c conda-forge libpython-static=${python_version}
47
+ echo "conda install -y mkl-include pyyaml numpy ipython"
48
+ conda install -y mkl mkl-include pyyaml numpy ipython
49
+ echo "conda install -y pytorch torchvision torchaudio cpuonly -c pytorch"
50
+ conda install -y pytorch torchvision torchaudio cpuonly -c pytorch
51
+ conda clean -ya;
61
52
echo "::endgroup::"
62
53
63
54
echo "::group::Install"
@@ -94,13 +85,10 @@ jobs:
94
85
./multipy/runtime/build/deploy_benchmark 2 none jit multipy/runtime/example/generated/resnet
95
86
echo "::endgroup::"
96
87
97
- if [[ ${{ inputs.python3-minor-version }} -gt 7 ]];
98
- then
99
- echo "::group::Compat test"
100
- pip install -r compat-requirements.txt
101
- multipy/runtime/build/interactive_embedded_interpreter --pyscript multipy/runtime/test_compat.py
102
- echo "::endgroup::";
103
- fi
88
+ echo "::group::Compat test"
89
+ pip install -r compat-requirements.txt
90
+ multipy/runtime/build/interactive_embedded_interpreter --pyscript multipy/runtime/test_compat.py
91
+ echo "::endgroup::";
104
92
105
93
echo "::group::Test GPU"
106
94
# Separating GPU tests due to issues with py37 and py38: https://github.com/pytorch/multipy/issues/239
0 commit comments