Skip to content

Commit

Permalink
Drop python 3.7 from CI (#2836)
Browse files Browse the repository at this point in the history
* removed 3.7 from ci files

* some more changes

* removed `m` from gs api link;
lets see if ci is is okay with this

* use pip install command instead of a python script

* Apply suggestions from code review

---------

Co-authored-by: vfdev <vfdev.5@gmail.com>
  • Loading branch information
abhi-glitchhg and vfdev-5 authored Feb 2, 2023
1 parent ecd2b4e commit b76b825
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 22 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Build hvd hvd-base
working-directory: docker
run: |
Expand Down Expand Up @@ -83,10 +83,10 @@ jobs:
- name: Remove cache
run: |
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Build hvd hvd-apex
working-directory: docker
run: |
Expand Down Expand Up @@ -121,10 +121,10 @@ jobs:
- name: Remove cache
run: |
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Build main base
working-directory: docker
run: |
Expand Down Expand Up @@ -156,10 +156,10 @@ jobs:
- name: Remove cache
run: |
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Build main apex
working-directory: docker
run: |
Expand Down Expand Up @@ -191,10 +191,10 @@ jobs:
- name: Remove cache
run: |
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Build msdp msdp-apex
working-directory: docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Trigger Circle-CI pipeline
env:
CIRCLE_TOKEN: ${{ secrets.CIRCLE_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8

- run: sudo npm install katex -g
- uses: actions/cache@v2
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8

- uses: actions/cache@v3
with:
Expand All @@ -69,7 +69,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8

- run: sudo npm install katex -g
- uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytorch-version-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
max-parallel: 10
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10"]
pytorch-version:
[1.12.1, 1.11.0, 1.10.0, 1.9.1, 1.8.1, 1.7.1, 1.6.0, 1.5.1, 1.4.0, 1.3.1]
exclude:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stable-release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Trigger Circle-CI pipeline
env:
CIRCLE_TOKEN: ${{ secrets.CIRCLE_TOKEN }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/tpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"
architecture: "x64"

- name: Get year & week number
Expand Down Expand Up @@ -62,9 +62,10 @@ jobs:
# mkl version fixed due to https://github.com/pytorch/ignite/issues/2350
pip install mkl==2021.4.0 requests gsutil
## Install torch & xla
curl https://raw.githubusercontent.com/pytorch/xla/master/contrib/scripts/env-setup.py -o pytorch-xla-env-setup.py
python pytorch-xla-env-setup.py --version "nightly"
## Install torch & xla and torchvision
pip install --pre https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch-nightly-cp38-cp38-linux_x86_64.whl
pip install --pre https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch_xla-nightly-cp38-cp38-linux_x86_64.whl
pip install --pre https://storage.googleapis.com/tpu-pytorch/wheels/colab/torchvision-nightly-cp38-cp38-linux_x86_64.whl
## Install test deps and Ignite
pip install -r requirements-dev.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10"]
pytorch-channel: [pytorch, pytorch-nightly]
include:
# includes a single build on windows
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 120
target-version = ['py37', 'py38', 'py39']
target-version = ['py38', 'py39']
include = '\.pyi?$'
exclude = '''
Expand Down

0 comments on commit b76b825

Please sign in to comment.