Skip to content

Commit 32ca3c9

Browse files
akihironittaawaelchli
authored andcommitted
CI: Enable Python 3.10 in full CPU testing (#13829)
* Update docker images to build
1 parent 80c0bed commit 32ca3c9

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
| workflow name | workflow file | action | accelerator\* | (Python, PyTorch) | OS |
88
| -------------------------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------------------------------------ | ------------------- |
9-
| Test full | .github/workflows/ci_test-full.yml | Run all tests except for accelerator-specific, standalone and slow tests. | CPU | (3.7, 1.8), (3.7, 1.11), (3.9, 1.8), (3.9, 1.12) | linux, mac, windows |
9+
| Test full | .github/workflows/ci_test-full.yml | Run all tests except for accelerator-specific, standalone and slow tests. | CPU | (3.7, 1.9), (3.7, 1.12), (3.10, 1.12) | linux, mac, windows |
1010
| Test with Conda | .github/workflows/ci_test-conda.yml | Same as ci_test-full.yml but with dependencies installed with conda. | CPU | (3.8, 1.8), (3.8, 1.9), (3.8, 1.10), (3.9, 1.12) | linux |
1111
| Test slow | .github/workflows/ci_test-slow.yml | Run only slow tests. Slow tests usually need to spawn threads and cannot be speed up or simplified. | CPU | (3.7, 1.8) | linux, mac, windows |
1212
| pytorch-lightning (IPUs) | .azure-pipelines/ipu-tests.yml | Run only IPU-specific tests. | IPU | (3.8, 1.9) | linux |

.github/workflows/ci-pytorch_test-full.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: [ubuntu-20.04, windows-2019, macOS-11]
24-
python-version: ["3.7", "3.9"] # minimum, maximum
24+
python-version: ["3.7", "3.10"] # minimum, maximum
2525
requires: ["oldest", "latest"]
2626
release: ["stable"]
27+
exclude:
28+
# There's no distribution of the oldest PyTorch 1.9 for Python 3.10.
29+
# TODO: Remove the exclusion when dropping PyTorch 1.9 support.
30+
- {python-version: "3.10", requires: "oldest"}
2731
# TODO: re-enable RC testing
2832
# include:
2933
# - {os: ubuntu-20.04, python-version: "3.10", requires: "latest", release: "pre"}
@@ -41,7 +45,7 @@ jobs:
4145
id: skip
4246
shell: bash -l {0}
4347
run: |
44-
FILTER='src/pytorch_lightning|requirements/pytorch|tests/tests_pytorch|examples/pl_*'
48+
FILTER='src/pytorch_lightning|requirements/pytorch|tests/tests_pytorch|examples/pl_*|.github/workflows/ci-pytorch_test-full.yml'
4549
echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr " " "\n" > changed_files.txt
4650
MATCHES=$(cat changed_files.txt | grep -E $FILTER)
4751
echo $MATCHES

.github/workflows/ci-pytorch_test-slow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
id: skip
3737
shell: bash -l {0}
3838
run: |
39-
FILTER='src/pytorch_lightning|requirements/pytorch|tests/tests_pytorch|examples/pl_*'
39+
FILTER='src/pytorch_lightning|requirements/pytorch|tests/tests_pytorch|examples/pl_*|.github/workflows/ci-pytorch_test-slow.yml'
4040
echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr " " "\n" > changed_files.txt
4141
MATCHES=$(cat changed_files.txt | grep -E $FILTER)
4242
echo $MATCHES

0 commit comments

Comments
 (0)