Skip to content

Commit 90d362a

Browse files
authored
Merge pull request #10738 from PyTorchLightning/1.5.x-drop-torch-1.6
Sync CI configuration into 1.5.x branch
1 parent b208653 commit 90d362a

23 files changed

+107
-57
lines changed

.github/workflows/ci_dockers.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI build Docker
1+
name: Docker
22
# https://www.docker.com/blog/first-docker-github-action-is-here
33
# https://github.com/docker/build-push-action
44
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
@@ -23,9 +23,9 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
# should be the config used in '.github/workflows/release-docker.yml', but we just keep one to check.
27-
python_version: ["3.9"]
28-
pytorch_version: ["1.9"]
26+
# the config used in '.azure-pipelines/gpu-tests.yml' since the Dockerfile uses the cuda image
27+
python_version: ["3.7"]
28+
pytorch_version: ["1.8"]
2929
steps:
3030
- name: Checkout
3131
uses: actions/checkout@v2
@@ -93,7 +93,7 @@ jobs:
9393
matrix:
9494
# the config used in '.github/workflows/ci_test-conda.yml'
9595
python_version: ["3.8"]
96-
pytorch_version: ["1.6", "1.7", "1.8", "1.9", "1.10"]
96+
pytorch_version: ["1.7", "1.8", "1.9", "1.10"]
9797
steps:
9898
- name: Checkout
9999
uses: actions/checkout@v2

.github/workflows/ci_pkg-install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Install pkg
1+
name: Package
22

33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
@@ -9,7 +9,7 @@ on: # Trigger the workflow on push or pull request, but only for the master bra
99

1010
jobs:
1111

12-
pkg-install:
12+
install:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
fail-fast: false

.github/workflows/ci_schema.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: CI action schema
1+
name: Schema
22
on: # Trigger the workflow on push or pull request, but only for the master branch
33
push: {}
44
pull_request:
55
branches: [master, "release/*"]
66

77
jobs:
8-
validate-schema:
8+
check:
99
runs-on: ubuntu-20.04
1010
steps:
1111
- name: Checkout

.github/workflows/ci_test-base.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# this jobs runs `pytest` over the source directory. It does not install any extra dependencies.
22
# this is useful to catch errors where an import has been added which is not part of the basic dependencies.
3-
name: CI basic testing
3+
name: Test
44

55
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
66
on: # Trigger the workflow on push or pull request, but only for the master branch
@@ -10,8 +10,7 @@ on: # Trigger the workflow on push or pull request, but only for the master bra
1010
branches: [master, "release/*"]
1111

1212
jobs:
13-
doctest:
14-
13+
source:
1514
runs-on: ${{ matrix.os }}
1615
strategy:
1716
fail-fast: false

.github/workflows/ci_test-conda.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PyTorch & Conda
1+
name: Test
22

33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
python-version: ["3.8"] # previous to last Python version as that one is already used in test-full
18-
pytorch-version: ["1.6", "1.7", "1.8", "1.9", "1.10"]
18+
pytorch-version: ["1.7", "1.8", "1.9", "1.10"] # nightly: add when there's a release candidate
1919

2020
timeout-minutes: 35
2121
steps:

.github/workflows/ci_test-full.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI complete testing
1+
name: Test
22

33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
@@ -10,7 +10,7 @@ on: # Trigger the workflow on push or pull request, but only for the master bra
1010

1111
jobs:
1212

13-
pytest:
13+
cpu:
1414

1515
runs-on: ${{ matrix.os }}
1616
if: github.event.pull_request.draft == false
@@ -28,11 +28,6 @@ jobs:
2828
- {os: macOS-10.15, python-version: "3.6", requires: "oldest", release: "stable"}
2929
# nightly: add when there's a release candidate
3030
#- {os: ubuntu-20.04, python-version: "3.10", requires: "latest", release: "pre"}
31-
exclude:
32-
# PyTorch 1.6 is not available with Python 3.9: https://github.com/pytorch/pytorch/issues/46205
33-
- {os: ubuntu-18.04, python-version: "3.9", requires: "oldest", release: "stable"}
34-
- {os: windows-2019, python-version: "3.9", requires: "oldest", release: "stable"}
35-
- {os: macOS-10.15, python-version: "3.9", requires: "oldest", release: "stable"}
3631

3732
timeout-minutes: 40
3833

.github/workflows/code-checks.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Check code"
1+
name: Test
22

33
on: # Trigger the workflow on push or pull request, but only for the master branch
44
push:
@@ -7,8 +7,7 @@ on: # Trigger the workflow on push or pull request, but only for the master bra
77
branches: [master, "release/*"]
88

99
jobs:
10-
python-typing-mypy:
11-
name: Python typing Mypy
10+
mypy:
1211
runs-on: ubuntu-20.04
1312
steps:
1413
- uses: actions/checkout@master

.github/workflows/docs-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Docs check"
1+
name: Test
22
# https://github.com/marketplace/actions/sphinx-build
33

44
on: # Trigger the workflow on push or pull request, but only for the master branch
@@ -8,7 +8,7 @@ on: # Trigger the workflow on push or pull request, but only for the master bra
88
branches: [master, "release/*"]
99

1010
jobs:
11-
test-docs:
11+
doctest:
1212
runs-on: ubuntu-20.04
1313
steps:
1414
- uses: actions/checkout@v2

.github/workflows/events-nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Nightly events
1+
name: Nightly
22

33
# https://jasonet.co/posts/scheduled-actions/
44
# https://github.community/t/distinct-job-for-each-schedule/17811/2
@@ -123,7 +123,7 @@ jobs:
123123
matrix:
124124
# the config used in '.github/workflows/ci_test-conda.yml'
125125
python_version: ["3.8"]
126-
pytorch_version: ["1.6", "1.7", "1.8", "1.9", "1.10"]
126+
pytorch_version: ["1.7", "1.8", "1.9", "1.10"]
127127

128128
steps:
129129
- name: Checkout

.github/workflows/events-recurrent.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Recurrent events
1+
name: Recurrent
22

33
# https://jasonet.co/posts/scheduled-actions/
44
# https://github.community/t/distinct-job-for-each-schedule/17811/2

0 commit comments

Comments
 (0)