forked from HumanCompatibleAI/imitation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 838 Bytes
/
.travis.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
40
41
42
43
sudo: required
dist: xenial
language: python
cache: pip
before_install:
- sudo apt-get install -y libopenmpi-dev
install:
- pip install '.[test,cpu]'
script:
- pytest -vv tests/
matrix:
include:
- name: "Linting"
python: "3.7"
install:
- pip install '.[dev,cpu]'
script:
- ci/lint.sh
- name: "3.7 Coverage Tests"
python: "3.7"
install:
# Install in developer mode so codecov can match paths
- pip install -e '.[test,cpu]'
script:
- py.test -vv --cov-report=xml --cov=. tests/
after_success:
- codecov
- name: "3.7 Static Type Checking"
python: "3.7"
install:
- pip install '.[test,cpu]'
- pip install pytype
script:
- ci/type_check.sh
- name: "3.6 Unit Tests"
python: "3.6"
- name: "3.7 Unit Tests"
python: "3.7"