From aa6dda6157cdb284563d9f31acfa465e00764f6e Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Fri, 7 Apr 2023 14:27:19 -0700 Subject: [PATCH] remove python 3.7 support ghstack-source-id: 385c8d0d360030949a734caa866032e1702d6778 Pull Request resolved: https://github.com/pytorch/multipy/pull/314 --- .github/workflows/build_test_release.yaml | 33 ++++++----------------- .github/workflows/install_test.yaml | 2 +- .github/workflows/runtime_nightly.yaml | 2 +- .github/workflows/runtime_tests.yaml | 2 +- 4 files changed, 11 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build_test_release.yaml b/.github/workflows/build_test_release.yaml index daf3a7fc..1f8183f2 100644 --- a/.github/workflows/build_test_release.yaml +++ b/.github/workflows/build_test_release.yaml @@ -40,24 +40,10 @@ jobs: echo "::endgroup::" echo "::group::Setup virtual environment" - if [[ ${{ inputs.python3-minor-version }} -gt 7 ]]; - then - conda install -y python=${python_version} mkl mkl-include conda-build pyyaml numpy ipython - conda install -y -c conda-forge libpython-static=${python_version} - conda install -y pytorch torchvision torchaudio cpuonly -c pytorch - conda clean -ya; - else - conda deactivate - pip install virtualenv - git clone https://github.com/pyenv/pyenv.git ~/.pyenv - export CFLAGS="-fPIC -g" - ~/.pyenv/bin/pyenv install --force ${python_version} - virtualenv -p ~/.pyenv/versions/$(~/.pyenv/bin/pyenv latest ${python_version})/bin/python3 ~/venvs/multipy - source ~/venvs/multipy/bin/activate - pip install \ - torch torchvision torchaudio \ - --extra-index-url https://download.pytorch.org/whl/cpu; - fi + conda install -y python=${python_version} mkl mkl-include conda-build pyyaml numpy ipython + conda install -y -c conda-forge libpython-static=${python_version} + conda install -y pytorch torchvision torchaudio cpuonly -c pytorch + conda clean -ya; echo "::endgroup::" echo "::group::Install" @@ -94,13 +80,10 @@ jobs: ./multipy/runtime/build/deploy_benchmark 2 none jit multipy/runtime/example/generated/resnet echo "::endgroup::" - if [[ ${{ inputs.python3-minor-version }} -gt 7 ]]; - then - echo "::group::Compat test" - pip install -r compat-requirements.txt - multipy/runtime/build/interactive_embedded_interpreter --pyscript multipy/runtime/test_compat.py - echo "::endgroup::"; - fi + echo "::group::Compat test" + pip install -r compat-requirements.txt + multipy/runtime/build/interactive_embedded_interpreter --pyscript multipy/runtime/test_compat.py + echo "::endgroup::"; echo "::group::Test GPU" # Separating GPU tests due to issues with py37 and py38: https://github.com/pytorch/multipy/issues/239 diff --git a/.github/workflows/install_test.yaml b/.github/workflows/install_test.yaml index de28329f..c5f9f115 100644 --- a/.github/workflows/install_test.yaml +++ b/.github/workflows/install_test.yaml @@ -14,7 +14,7 @@ jobs: installtest: strategy: matrix: - python3-minor-version: [7,8,9,10] + python3-minor-version: [8,9,10] platform: [ubuntu-18.04] fail-fast: false runs-on: ${{ matrix.platform }} diff --git a/.github/workflows/runtime_nightly.yaml b/.github/workflows/runtime_nightly.yaml index 2427ff81..0a0a8433 100644 --- a/.github/workflows/runtime_nightly.yaml +++ b/.github/workflows/runtime_nightly.yaml @@ -9,7 +9,7 @@ jobs: build-test-release: strategy: matrix: - python3-minor-version: [7,8,9,10] + python3-minor-version: [8,9,10] platform: [linux.4xlarge.nvidia.gpu] fail-fast: false uses: ./.github/workflows/build_test_release.yaml diff --git a/.github/workflows/runtime_tests.yaml b/.github/workflows/runtime_tests.yaml index a8bbac54..d994f29d 100644 --- a/.github/workflows/runtime_tests.yaml +++ b/.github/workflows/runtime_tests.yaml @@ -11,7 +11,7 @@ jobs: unittest: strategy: matrix: - python3-minor-version: [7,8,9,10] + python3-minor-version: [8,9,10] platform: [linux.4xlarge.nvidia.gpu] fail-fast: false uses: ./.github/workflows/build_test_release.yaml