From 5aa132a91c59d675d6a2914f308a01d567c94dd3 Mon Sep 17 00:00:00 2001 From: Ma Zerun Date: Wed, 1 Sep 2021 11:06:00 +0800 Subject: [PATCH] [CI] Add PyTorch 1.9 and Python 3.9 build workflow, and remove some CI. (#422) * Add PyTorch 1.9 build workflow, and remove some CI. * Add Python 3.9 CI * Show Python 3.9 support. --- .github/workflows/build.yml | 28 +++++++++++++++------------- setup.py | 1 + 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f70db083..09be56dbb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: strategy: matrix: python-version: [3.7] - torch: [1.3.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0] + torch: [1.3.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0] include: - torch: 1.3.0 torchvision: 0.4.2 @@ -36,20 +36,8 @@ jobs: torchvision: 0.6.0 - torch: 1.6.0 torchvision: 0.7.0 - - torch: 1.6.0 - torchvision: 0.7.0 - python-version: 3.6 - - torch: 1.6.0 - torchvision: 0.7.0 - python-version: 3.8 - torch: 1.7.0 torchvision: 0.8.1 - - torch: 1.7.0 - torchvision: 0.8.1 - python-version: 3.6 - - torch: 1.7.0 - torchvision: 0.8.1 - python-version: 3.8 - torch: 1.8.0 torchvision: 0.9.0 - torch: 1.8.0 @@ -58,6 +46,20 @@ jobs: - torch: 1.8.0 torchvision: 0.9.0 python-version: 3.8 + - torch: 1.8.0 + torchvision: 0.9.0 + python-version: 3.9 + - torch: 1.9.0 + torchvision: 0.10.0 + - torch: 1.9.0 + torchvision: 0.10.0 + python-version: 3.6 + - torch: 1.9.0 + torchvision: 0.10.0 + python-version: 3.8 + - torch: 1.9.0 + torchvision: 0.10.0 + python-version: 3.9 steps: - uses: actions/checkout@v2 diff --git a/setup.py b/setup.py index 340996e80..a9d147963 100644 --- a/setup.py +++ b/setup.py @@ -166,6 +166,7 @@ if __name__ == '__main__': 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', ], license='Apache License 2.0', tests_require=parse_requirements('requirements/tests.txt'),