@@ -40,24 +40,10 @@ 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
+ conda install -y python=${python_version} mkl mkl-include conda-build pyyaml numpy ipython
44
+ conda install -y -c conda-forge libpython-static=${python_version}
45
+ conda install -y pytorch torchvision torchaudio cpuonly -c pytorch
46
+ conda clean -ya;
61
47
echo "::endgroup::"
62
48
63
49
echo "::group::Install"
@@ -94,13 +80,10 @@ jobs:
94
80
./multipy/runtime/build/deploy_benchmark 2 none jit multipy/runtime/example/generated/resnet
95
81
echo "::endgroup::"
96
82
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
83
+ echo "::group::Compat test"
84
+ pip install -r compat-requirements.txt
85
+ multipy/runtime/build/interactive_embedded_interpreter --pyscript multipy/runtime/test_compat.py
86
+ echo "::endgroup::";
104
87
105
88
echo "::group::Test GPU"
106
89
# Separating GPU tests due to issues with py37 and py38: https://github.com/pytorch/multipy/issues/239
0 commit comments