Skip to content

Commit aa6dda6

Browse files
committed
remove python 3.7 support
ghstack-source-id: 385c8d0d360030949a734caa866032e1702d6778 Pull Request resolved: #314
1 parent e271d85 commit aa6dda6

File tree

4 files changed

+11
-28
lines changed

4 files changed

+11
-28
lines changed

.github/workflows/build_test_release.yaml

+8-25
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,10 @@ jobs:
4040
echo "::endgroup::"
4141
4242
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;
6147
echo "::endgroup::"
6248
6349
echo "::group::Install"
@@ -94,13 +80,10 @@ jobs:
9480
./multipy/runtime/build/deploy_benchmark 2 none jit multipy/runtime/example/generated/resnet
9581
echo "::endgroup::"
9682
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::";
10487
10588
echo "::group::Test GPU"
10689
# Separating GPU tests due to issues with py37 and py38: https://github.com/pytorch/multipy/issues/239

.github/workflows/install_test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
installtest:
1515
strategy:
1616
matrix:
17-
python3-minor-version: [7,8,9,10]
17+
python3-minor-version: [8,9,10]
1818
platform: [ubuntu-18.04]
1919
fail-fast: false
2020
runs-on: ${{ matrix.platform }}

.github/workflows/runtime_nightly.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build-test-release:
1010
strategy:
1111
matrix:
12-
python3-minor-version: [7,8,9,10]
12+
python3-minor-version: [8,9,10]
1313
platform: [linux.4xlarge.nvidia.gpu]
1414
fail-fast: false
1515
uses: ./.github/workflows/build_test_release.yaml

.github/workflows/runtime_tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
unittest:
1212
strategy:
1313
matrix:
14-
python3-minor-version: [7,8,9,10]
14+
python3-minor-version: [8,9,10]
1515
platform: [linux.4xlarge.nvidia.gpu]
1616
fail-fast: false
1717
uses: ./.github/workflows/build_test_release.yaml

0 commit comments

Comments
 (0)