Unverified Commit 5617ad72 authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

[Feature] Add python3.9 in CI (#1291)

* [Feature] Add python3.9 in CI

* fix dependencies for compiling onnx
parent 14f55e6f
...@@ -164,6 +164,9 @@ jobs: ...@@ -164,6 +164,9 @@ jobs:
- python-version: 3.8 - python-version: 3.8
torch: 1.8.0+cu101 torch: 1.8.0+cu101
torchvision: 0.9.0+cu101 torchvision: 0.9.0+cu101
- python-version: 3.9
torch: 1.8.0+cu101
torchvision: 0.9.0+cu101
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
...@@ -196,6 +199,9 @@ jobs: ...@@ -196,6 +199,9 @@ jobs:
run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
- name: Install system dependencies - name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg run: sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
- name: Install dependencies for compiling onnx when python=3.9
run: pip install protobuf && sudo apt-get install libprotobuf-dev protobuf-compiler
if: ${{matrix.python-version == '3.9'}}
- name: Build and install - name: Build and install
run: rm -rf .eggs && pip install -e . run: rm -rf .eggs && pip install -e .
- name: Validate the installation - name: Validate the installation
...@@ -276,16 +282,6 @@ jobs: ...@@ -276,16 +282,6 @@ jobs:
coverage run --branch --source=mmcv -m pytest tests/ coverage run --branch --source=mmcv -m pytest tests/
coverage xml coverage xml
coverage report -m coverage report -m
# Only upload coverage report for python3.7 && pytorch1.6
- name: Upload coverage to Codecov
if: ${{matrix.torch == '1.6.0+cu102' && matrix.python-version == '3.7'}}
uses: codecov/codecov-action@v1.0.14
with:
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
build_windows_without_ops: build_windows_without_ops:
runs-on: windows-latest runs-on: windows-latest
......
...@@ -335,6 +335,7 @@ setup( ...@@ -335,6 +335,7 @@ setup(
'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Utilities', 'Topic :: Utilities',
], ],
url='https://github.com/open-mmlab/mmcv', url='https://github.com/open-mmlab/mmcv',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment