forked from NVIDIAGameWorks/kaolin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
39 lines (35 loc) · 1.02 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
image: "pytorch/pytorch:1.2-cuda10.0-cudnn7-devel"
before_script:
- pip install --upgrade pip>=18.0.0
- pip install flake8==3.7.9 \
flake8-bugbear==20.1.4 \
flake8-comprehensions==3.2.2 \
flake8-mypy==17.8.0 \
flake8-pyi==19.3.0 \
pytest==5.4.2 \
pytest-cov==2.8.1
- pip install --no-dependencies -r requirements.txt
- apt-get update && apt-get -y install libglib2.0-0 # needed by opencv
stages:
- build
- test
build general:
tags:
- kaolin
stage: build
script:
- python setup.py build_ext --inplace -j$(nproc --all)
- python setup.py install
- python -c 'import kaolin; print(kaolin.__version__)'
full test:
tags:
- kaolin
stage: test
script:
- flake8 --config=.flake8 .
- source setenv.sh
- python setup.py develop
- pytest --cov=kaolin/ tests/
- tests/examples/run/test_classification.sh
- tests/examples/run/test_nmr.sh
- tests/examples/run/test_softras_examples.sh