Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
5617ad72
Unverified
Commit
5617ad72
authored
Aug 27, 2021
by
Zaida Zhou
Committed by
GitHub
Aug 27, 2021
Browse files
[Feature] Add python3.9 in CI (#1291)
* [Feature] Add python3.9 in CI * fix dependencies for compiling onnx
parent
14f55e6f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
.github/workflows/build.yml
.github/workflows/build.yml
+6
-10
setup.py
setup.py
+1
-0
No files found.
.github/workflows/build.yml
View file @
5617ad72
...
...
@@ -164,6 +164,9 @@ jobs:
-
python-version
:
3.8
torch
:
1.8.0+cu101
torchvision
:
0.9.0+cu101
-
python-version
:
3.9
torch
:
1.8.0+cu101
torchvision
:
0.9.0+cu101
steps
:
-
uses
:
actions/checkout@v2
...
...
@@ -196,6 +199,9 @@ jobs:
run
:
pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Install system dependencies
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
run
:
rm -rf .eggs && pip install -e .
-
name
:
Validate the installation
...
...
@@ -276,16 +282,6 @@ jobs:
coverage run --branch --source=mmcv -m pytest tests/
coverage xml
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
:
runs-on
:
windows-latest
...
...
setup.py
View file @
5617ad72
...
...
@@ -335,6 +335,7 @@ setup(
'Programming Language :: Python :: 3.6'
,
'Programming Language :: Python :: 3.7'
,
'Programming Language :: Python :: 3.8'
,
'Programming Language :: Python :: 3.9'
,
'Topic :: Utilities'
,
],
url
=
'https://github.com/open-mmlab/mmcv'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment