Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weekly Patch Release v1.5.10 #11789

Closed
wants to merge 123 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
e8ad5d0
Update __version__
carmocca Nov 3, 2021
7d87986
Fix `apply_to_collection(defaultdict)` (#10316)
carmocca Nov 3, 2021
2685aa6
Fix failure when `DataLoader(batch_size=None)` is passed (#10345)
peterdudfield Nov 4, 2021
71380a5
Update Python testing (#10269)
carmocca Nov 4, 2021
c7be274
Fix DataLoader inspection and re-instantiation in Lite (#10334)
awaelchli Nov 5, 2021
297d549
Only import PostLocalSGD related modules when it's needed (#10359)
four4fish Nov 8, 2021
0db233b
Fix pickling error with CSVLogger (#10388)
awaelchli Nov 8, 2021
30b3ccb
Revert part of #10279 (#10376)
carmocca Nov 8, 2021
8d7712c
disable step logging in epoch hooks (#10409)
rohitgr7 Nov 9, 2021
3668598
Fix deadlocks for distributed training for RichProgressBar (#10428)
awaelchli Nov 9, 2021
53451c5
Fix converting only float type tensors in Lite (#10429)
awaelchli Nov 9, 2021
69ea0b0
[Fault Tolerance] Don't check the len of a dataset, but its instance.…
awaelchli Nov 9, 2021
51cb077
Resolve workers being forcelly deleted with `persistent_workers=True`…
awaelchli Nov 9, 2021
6d1ee3b
Update csv_logs.py
justusschock Nov 9, 2021
4755ae6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 9, 2021
43a5075
update version
awaelchli Nov 10, 2021
ab44b81
Enable distributed training with CombinedDataLoader and max_size_cycl…
awaelchli Nov 10, 2021
4bc6e95
Fix support for dataclasses with ClassVar/InitVar in `apply_to_collec…
awaelchli Nov 10, 2021
6baa5cc
fix overfit_batch sampler replacement logic (#10486)
rohitgr7 Nov 15, 2021
391e0d6
shutdown workers on failure (#10463)
tchaton Nov 15, 2021
5e6db79
Squeeze the early stopping monitor (#10461)
carmocca Nov 12, 2021
53ff840
Resolve instantiation problem with init_meta_context (#10493)
tchaton Nov 15, 2021
5f4a5fe
Fix `to_torchscript()` causing false positive deprecation warnings (#…
carmocca Nov 15, 2021
122e503
Skip strategy=ddp_spawn, accelerator=cpu, python>=3.9 tests (#10550)
carmocca Nov 16, 2021
9e45024
Fix scripting causing false positive deprecation warnings (#10555)
carmocca Nov 16, 2021
1ecb962
Change attributes of `RichProgressBarTheme` dataclass (#10454)
Raahul-Singh Nov 11, 2021
ae6da92
1.5.2 release
awaelchli Nov 16, 2021
a707438
[DeepSpeed] Do not fail if batch size could not be inferred for loggi…
Nov 16, 2021
0865ad1
Fix propagation of device and dtype properties in Lite modules (#10559)
awaelchli Nov 16, 2021
b31ab51
update version
awaelchli Nov 16, 2021
1510e15
Remove redundant fit call from accelerator connector test (#10626)
awaelchli Nov 19, 2021
81dea1a
Check torch.distributed availability before sharded tensor state dict…
ananthsub Nov 19, 2021
302c611
Lite: Don't pop value if they don't exist (#10613)
tchaton Nov 19, 2021
8eee9b3
Fix batch size extraction when set by the user in `LightningModule.lo…
rohitgr7 Nov 19, 2021
2bb4343
Respect the passed dtype with `self.log` (#10076)
qqueing Nov 19, 2021
024acd5
Simplify hanging queue test (#10591)
carmocca Nov 17, 2021
2052958
Added boring model as a ipynb so it can be updated (#10521)
jiwidi Nov 19, 2021
d249060
Fix misleading ModelCheckpoint documentation on every_n_epochs parame…
adamreeve Nov 19, 2021
ebae420
update bug_report model links and notebook (#10665)
rohitgr7 Nov 22, 2021
f620dc8
Remove metrics references from docs (#10567)
kaushikb11 Nov 22, 2021
9cbc5da
Fix docs filterwarnings snippet (#10671)
carmocca Nov 22, 2021
c3341e6
log metrics for correct dataloader only (#10522)
shabie Nov 18, 2021
3f2b857
Fix `move_metrics_to_cpu` with evaluation (#10631)
carmocca Nov 22, 2021
bfc0447
Don't register signal in thread (#10610)
awaelchli Nov 24, 2021
fb1029f
MANIFEST.in and setup.py clean-up (#7614)
carmocca Nov 19, 2021
1d3b6a2
Support special test parametrizations (#10569)
carmocca Nov 17, 2021
963d0b0
Move benchmarks into the test directory (#10614)
carmocca Nov 19, 2021
b208653
1.5.3 release notes
awaelchli Nov 24, 2021
90d362a
Merge pull request #10738 from PyTorchLightning/1.5.x-drop-torch-1.6
awaelchli Nov 25, 2021
d140a64
update version
awaelchli Nov 24, 2021
a5e8823
Fix compare version for packages (#10762)
kaushikb11 Nov 26, 2021
7f147ee
Delete TensorBoardLogger experiment before spawning the processes. (#…
tchaton Nov 26, 2021
f85d4c7
Consolidate state when retrieving sharded state dict in Lite (#10746)
awaelchli Nov 27, 2021
03b19fa
Fix default logging levels for train step specific hooks (#10756)
rohitgr7 Nov 29, 2021
bf9aef7
Update notebooks submodule (#10827)
ethanwharris Nov 30, 2021
4e08de2
[CLI] Add support for --key.help=class
kaushikb11 Nov 30, 2021
288d018
Tune Conda CI timeout and other minor improvements (#10769)
carmocca Nov 28, 2021
00d3675
Rename special to standalone (#10779)
carmocca Nov 26, 2021
551f05e
Merge pull request #10738 from PyTorchLightning/1.5.x-drop-torch-1.6
awaelchli Nov 25, 2021
20bef83
Update changelog
kaushikb11 Nov 30, 2021
c935ef7
update version
rohitgr7 Dec 1, 2021
8c1788c
Disable batch_size extraction for torchmetric instances (#10815)
rohitgr7 Nov 30, 2021
439bea4
Fix selection of standalone tests (#10857)
awaelchli Dec 1, 2021
9d6b1b6
Restore signals on teardown (#10611)
awaelchli Dec 1, 2021
e0a1f55
Fix `SignalConnector._has_already_handler` check for callable type (#…
awaelchli Dec 1, 2021
1101267
Skip hanging spawn tests (#10838)
awaelchli Dec 1, 2021
9b895de
Raise exception if rich is less than 10.2.2 (#10839)
awaelchli Dec 1, 2021
5820711
Fixed uploading best model checkpoint in NeptuneLogger (#10369)
Raalsky Dec 1, 2021
c38fbad
Fix schedule reset logic in pytorch profiler (#10837)
rohitgr7 Dec 2, 2021
c1184dc
Fix retrieval of batch indices when dataloader num_workers > 0 (#10870)
awaelchli Dec 2, 2021
e4f9656
Fix filtration logic for eval results with multiple dataloaders (#10810)
rohitgr7 Dec 3, 2021
c604fdf
Simplify some ddp-spawn tests #10921
awaelchli Dec 3, 2021
d2e791e
Resolve: 'DummyExperiment' object does not support item assignment (#…
awaelchli Dec 3, 2021
f245ea7
Don't import torch_xla.debug for torch-xla<1.8 (#10836)
kaushikb11 Dec 6, 2021
2cbf762
triger ci only with pull request (#10932)
awaelchli Dec 5, 2021
50b89db
Fix spawn plugins not deleting temp checkpoint (#10935)
awaelchli Dec 7, 2021
f593181
fix TypeError cause failure in singal_connector teardown (#10961)
four4fish Dec 6, 2021
361894f
1.5.5 release
awaelchli Dec 7, 2021
6963a2f
update chlog
rohitgr7 Dec 7, 2021
1f63923
[DeepSpeed] fix flag forwarding in DeepSpeedPlugin (#10899)
awaelchli Dec 14, 2021
93cda24
Removed duplicated file extension when uploading model checkpoints wi…
awaelchli Dec 14, 2021
ccfd1d8
Fix support for logging within callbacks returned from `LightningModu…
rohitgr7 Dec 14, 2021
82d7d50
Fix the num_batches value in warning (#10980)
rohitgr7 Dec 14, 2021
c014dd1
Fix support for `CombinedLoader` while checking for warning raised wi…
rohitgr7 Dec 14, 2021
af11c11
Fix sanity check for RichProgressBar (#10913)
kaushikb11 Dec 15, 2021
0bb9ce0
Update the TQDM progress bar `on_train_epoch_end` (#11069)
awaelchli Dec 15, 2021
6268716
update version to 1.5.7
awaelchli Dec 16, 2021
2596f24
Support torch 1.10.1 (#11095)
carmocca Dec 16, 2021
ff3d0dc
Update mypy (#11096)
awaelchli Dec 16, 2021
acb3846
Teardown sync-batchnorm after training (#11078)
awaelchli Dec 17, 2021
9cf6168
Fix signal teardown outside main thread (#11124)
awaelchli Dec 17, 2021
d4cfcc3
Fix AttributeError when using CombinedLoader in prediction (#11111)
awaelchli Dec 17, 2021
a542f82
Enable logging hparams only if there are any (#11105)
rohitgr7 Dec 17, 2021
8b2c39b
Fix tpu spawn plugin test (#11131)
kaushikb11 Dec 18, 2021
a659904
Fixed NeptuneLogger when using DDP (#11030)
Raalsky Dec 18, 2021
7971e78
Avoid the deprecated `onnx.export(example_outputs=...)` in torch 1.10…
carmocca Dec 17, 2021
327cba5
Remove partitioning of model in ZeRO 3 (#10655)
Dec 17, 2021
2264082
Add typing for `trainer.logger` (#11114)
awaelchli Dec 21, 2021
502aa74
Refactor plugin tests whose assertions don't need to run in `on_fit_s…
awaelchli Dec 21, 2021
0a635d9
Safely disable profiler (#11167)
guyang3532 Dec 20, 2021
ff9c3f9
Add required states for resumed ModelCheckpoint GC (#10995)
awaelchli Dec 21, 2021
1f32923
Avoid torch amp cuda warning with bf16 on cpu (#11161)
rohitgr7 Dec 21, 2021
98fcf1e
Suppress Warning in `PredictionEpochLoop` (#11189)
borchero Dec 21, 2021
a2e9720
update version for 1.5.8 release
awaelchli Jan 4, 2022
d6cf2bb
Fix CLI race condition saving the config (#11199)
carmocca Dec 23, 2021
f562427
Revert "[CI] Comment flaky tests (#10084)" (#10580)
akihironitta Jan 3, 2022
6a00066
Fix data fetcher selection (#11294)
awaelchli Jan 3, 2022
15f524b
Avoid non-blocking GPU->CPU copies. (#11288)
edpizzi Jan 3, 2022
a85033a
1.5.8 release commit
awaelchli Jan 4, 2022
4398db2
Fix `_should_reload_dl_epoch` causing inconsistent validation dataloa…
awaelchli Jan 5, 2022
b707c67
Fix min/max logging default value (#11310)
awaelchli Jan 5, 2022
15ee1f4
Update Version
justusschock Jan 11, 2022
dde425a
pin sphinx-autodoc-typehints version to v1.15 (#11400)
rohitgr7 Jan 10, 2022
b5b1174
Skip testing with PyTorch 1.7 and Python 3.9 on Ubuntu (#11217)
akihironitta Jan 7, 2022
18e95e0
release 1.5.9
rohitgr7 Jan 11, 2022
8cffc0f
Avoid in-place ops during logging result updates (#11401)
carmocca Jan 12, 2022
e95d8b1
Modify LSFEnvironment to use more reliable environment variable (#10825)
awaelchli Jan 16, 2022
f72bf31
Disable attaching samplers when using `IterableDataset` (#11507)
rohitgr7 Jan 17, 2022
9811284
Pin jsonargparse maximum version
carmocca Jan 18, 2022
6d5e22d
[CLI] Save only the configuration used (#11532)
carmocca Jan 19, 2022
a6394ea
Don't use old testing packages in CI (#11366)
akihironitta Jan 12, 2022
ab1c2ff
Update CHANGELOG.md
carmocca Jan 19, 2022
7acebbb
update version
rohitgr7 Feb 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .azure-pipelines/gpu-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
cancelTimeoutInMinutes: "2"
pool: gridai-spot-pool
container:
# base ML image: mcr.microsoft.com/azureml/openmpi3.1.2-cuda10.2-cudnn8-ubuntu18.04
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.8-torch1.8"
# should match the one in '.azure-pipelines/gpu-benchmark.yml'
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.7-torch1.8"
options: "--runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all --shm-size=32g"
workspace:
clean: all

steps:
- bash: |
python -m pytest benchmarks -v --durations=0
python -m pytest tests/benchmarks -v --durations=0
displayName: 'Testing: benchmarks'
env:
PL_RUNNING_BENCHMARKS: 1
10 changes: 5 additions & 5 deletions .azure-pipelines/gpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- bash: |
python -c "fname = 'requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'horovod' not in line] ; open(fname, 'w').writelines(lines)"
pip install fairscale==0.4.0
pip install deepspeed==0.5.4
pip install deepspeed==0.5.7
pip install . --requirement requirements/devel.txt
pip list
displayName: 'Install dependencies'
Expand All @@ -68,14 +68,14 @@ jobs:
displayName: 'Get legacy checkpoints'

- bash: |
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests --ignore tests/benchmarks -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
displayName: 'Testing: standard'

- bash: |
bash tests/special_tests.sh
bash tests/standalone_tests.sh
env:
PL_USE_MOCKED_MNIST: "1"
displayName: 'Testing: special'
displayName: 'Testing: standalone'

- bash: |
python -m coverage report
Expand Down Expand Up @@ -113,5 +113,5 @@ jobs:
displayName: 'Testing: examples'

- bash: |
python -m pytest benchmarks -v --maxfail=2 --durations=0
python -m pytest tests/benchmarks -v --maxfail=2 --durations=0
displayName: 'Testing: benchmarks'
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ orbs:
go: circleci/go@1.3.0
codecov: codecov/codecov@1.1.0

trigger:
tags:
include:
- '*'
branches:
include:
- "master"
- "release/*"
- "refs/tags/*"
pr:
- "master"
- "release/*"

# Workflow Steps:
# 1. Checkout
# 2. Install GO
Expand Down
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ assignees: ''
Please reproduce using the BoringModel!

You can use the following Colab link:
https://colab.research.google.com/drive/1HvWVVTK8j2Nj52qU4Q4YCyzOm0_aLQF3?usp=sharing
https://colab.research.google.com/github/PytorchLightning/pytorch-lightning/blob/master/pl_examples/bug_report/bug_report_model.ipynb
IMPORTANT: has to be public.

or this simple template:
https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pl_examples/bug_report_model.py
https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pl_examples/bug_report/bug_report_model.py

If you could not reproduce using the BoringModel and still think there's a bug, please post here
but remember, bugs with code are fixed faster!
Expand All @@ -46,9 +46,9 @@ python collect_env_details.py
You can also fill out the list below manually.
-->

- PyTorch Lightning Version (e.g., 1.3.0):
- PyTorch Version (e.g., 1.8)
- Python version:
- PyTorch Lightning Version (e.g., 1.5.0):
- PyTorch Version (e.g., 1.10):
- Python version (e.g., 3.9):
- OS (e.g., Linux):
- CUDA/cuDNN version:
- GPU models and configuration:
Expand Down
2 changes: 1 addition & 1 deletion .github/set-min-requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"requirements.txt",
"requirements/extra.txt",
"requirements/loggers.txt",
"requirements/test.txt",
"requirements/examples.txt",
# "requirements/test.txt", # Don't use old testing packages
)


Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci_dockers.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI build Docker
name: Docker
# https://www.docker.com/blog/first-docker-github-action-is-here
# https://github.com/docker/build-push-action
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
Expand All @@ -23,9 +23,9 @@ jobs:
strategy:
fail-fast: false
matrix:
# should be the config used in '.github/workflows/release-docker.yml', but we just keep one to check.
python_version: ["3.9"]
pytorch_version: ["1.9"]
# the config used in '.azure-pipelines/gpu-tests.yml' since the Dockerfile uses the cuda image
python_version: ["3.7"]
pytorch_version: ["1.8"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -92,8 +92,8 @@ jobs:
fail-fast: false
matrix:
# the config used in '.github/workflows/ci_test-conda.yml'
python_version: ["3.7"]
pytorch_version: ["1.6", "1.7", "1.8", "1.9", "1.10"]
python_version: ["3.8"]
pytorch_version: ["1.7", "1.8", "1.9", "1.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -119,7 +119,7 @@ jobs:
fail-fast: false
matrix:
# the config used in 'dockers/ipu-ci-runner/Dockerfile'
python_version: ["3.8"] # latest
python_version: ["3.9"] # latest
# TODO: upgrade - PopTorch 2.2 uses torch 1.9, see:
# https://docs.graphcore.ai/projects/poptorch-user-guide/en/latest/installation.html#version-compatibility
pytorch_version: ["1.7"]
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/ci_pkg-install.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Install pkg
name: Package

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

jobs:

pkg-install:
install:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -26,12 +26,11 @@ jobs:

- name: Prepare env
run: |
pip install check-manifest "twine==3.2" setuptools wheel
pip install "twine==3.2" setuptools wheel

- name: Create package
run: |
check-manifest
# python setup.py check --metadata --strict
python setup.py check --metadata --strict
python setup.py sdist bdist_wheel

- name: Check package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_schema.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: CI action schema
name: Schema
on: # Trigger the workflow on push or pull request, but only for the master branch
push: {}
pull_request:
branches: [master, "release/*"]

jobs:
validate-schema:
check:
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/ci_test-base.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# this jobs runs `pytest` over the source directory. It does not install any extra dependencies.
# this is useful to catch errors where an import has been added which is not part of the basic dependencies.
name: CI basic testing
name: Test

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

jobs:
doctest:

source:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -20,7 +19,7 @@ jobs:
# this will install stable torch
python-version: [3.9]

# Timeout: https://stackoverflow.com/a/59076067/4521646
# lower timeout as this should run very quickly
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -60,7 +59,6 @@ jobs:

- name: Test Package [only]
run: |
# NOTE: run coverage on tests does not propagate failure status for Win, https://github.com/nedbat/coveragepy/issues/1003
coverage run --source pytorch_lightning -m pytest pytorch_lightning -v --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml

- name: Upload pytest test results
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/ci_test-conda.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PyTorch & Conda
name: Test

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

# Timeout: https://stackoverflow.com/a/59076067/4521646
timeout-minutes: 35
timeout-minutes: 30
steps:
- uses: actions/checkout@v2

Expand All @@ -30,7 +29,8 @@ jobs:
python ./requirements/adjust_versions.py requirements/extra.txt
python ./requirements/adjust_versions.py requirements/examples.txt
pip install --requirement requirements/devel.txt --find-links https://download.pytorch.org/whl/nightly/torch_nightly.html
pip install pytest-random-order
# set a per-test timeout of 2.5 minutes to fail sooner. this aids with hanging tests
pip install pytest-timeout
pip list

- name: Pull checkpoints from S3
Expand All @@ -43,8 +43,7 @@ jobs:

- name: Tests
run: |
# NOTE: run coverage on tests does not propagate failure status for Win, https://github.com/nedbat/coveragepy/issues/1003
coverage run --source pytorch_lightning -m pytest --random-order-seed=1 pytorch_lightning tests -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml
coverage run --source pytorch_lightning -m pytest --timeout 150 pytorch_lightning tests -v --durations=50 --junitxml=junit/test-results-${{ runner.os }}-torch${{ matrix.pytorch-version }}.xml
shell: bash -l {0}

- name: Upload pytest results
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/ci_test-full.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI complete testing
name: Test

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

jobs:

pytest:
cpu:

runs-on: ${{ matrix.os }}
if: github.event.pull_request.draft == false
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, windows-2019, macOS-10.15]
python-version: [3.6, 3.8, 3.9]
requires: ['minimal', 'latest']
release: ['stable']
exclude:
- python-version: 3.9
requires: 'minimal'
python-version: ["3.7", "3.9"] # minimum, maximum
requires: ["oldest", "latest"]
release: ["stable"]
include:
- os: ubuntu-20.04
python-version: 3.9
requires: 'latest'
release: 'pre'
# test 3.6 only on oldest until EOL: https://github.com/PyTorchLightning/pytorch-lightning/issues/9981
- {os: ubuntu-18.04, python-version: "3.6", requires: "oldest", release: "stable"}
- {os: windows-2019, python-version: "3.6", requires: "oldest", release: "stable"}
- {os: macOS-10.15, python-version: "3.6", requires: "oldest", release: "stable"}
# nightly: add when there's a release candidate
#- {os: ubuntu-20.04, python-version: "3.10", requires: "latest", release: "pre"}
exclude:
# Skip if torch<1.8 and py3.9 on Linux: https://github.com/pytorch/pytorch/issues/50014
- {os: ubuntu-18.04, python-version: "3.9", requires: "oldest", release: "stable"}

# Timeout: https://stackoverflow.com/a/59076067/4521646
# TODO: the macOS is taking too long, probably caching did not work...
timeout-minutes: 40

steps:
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
python .github/prune-packages.py requirements/extra.txt "horovod"

- name: Set min. dependencies
if: matrix.requires == 'minimal'
if: matrix.requires == 'oldest'
run: |
python .github/set-min-requirements.py

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Check code"
name: Test

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

jobs:
python-typing-mypy:
name: Python typing Mypy
mypy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Docs check"
name: Test
# https://github.com/marketplace/actions/sphinx-build

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

jobs:
test-docs:
doctest:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/events-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nightly events
name: Nightly

# https://jasonet.co/posts/scheduled-actions/
# https://github.community/t/distinct-job-for-each-schedule/17811/2
Expand Down Expand Up @@ -122,8 +122,8 @@ jobs:
fail-fast: false
matrix:
# the config used in '.github/workflows/ci_test-conda.yml'
python_version: ["3.7"]
pytorch_version: ["1.6", "1.7", "1.8", "1.9", "1.10"]
python_version: ["3.8"]
pytorch_version: ["1.7", "1.8", "1.9", "1.10"]

steps:
- name: Checkout
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
matrix:
# the config used in 'dockers/ipu-ci-runner/Dockerfile'
include:
- python_version: "3.8"
- python_version: "3.9"
pytorch_version: "1.7"

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/events-recurrent.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Recurrent events
name: Recurrent

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