forked from ydataai/ydata-profiling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (72 loc) · 1.58 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
os: linux
dist: bionic
language: python
cache:
pip: true
directories:
- data/
jobs:
include:
- os: linux
name: "Python 3.9-dev on Linux"
python: 3.9-dev
env: TEST=examples PANDAS=">=1"
before_install:
- sudo apt-get -y install libopenblas-dev
allow_failures:
- name: "Python 3.9-dev on Linux"
python:
- 3.6
- 3.7
- 3.8
env:
- TEST=unit PANDAS="<1"
- TEST=issue PANDAS="<1"
- TEST=console PANDAS="<1"
- TEST=examples PANDAS="<1"
- TEST=unit PANDAS="==1.0.5"
- TEST=issue PANDAS="==1.0.5"
- TEST=unit PANDAS=">=1.1"
- TEST=issue PANDAS=">=1.1"
- TEST=console PANDAS=">=1.1"
- TEST=examples PANDAS=">=1.1"
- TEST=lint PANDAS=">=1.1"
- TEST=typing PANDAS=">=1.1"
before_install:
- pip install --upgrade pip setuptools wheel
- pip install -r requirements.txt
- pip install -r requirements-test.txt
- pip install "pandas$PANDAS"
install:
- check-manifest
- python setup.py sdist bdist_wheel
- twine check dist/*
- pip install -e .[notebook,app]
script:
- >
if [ $TEST == 'unit' ];
then pytest --cov=. tests/unit/;
fi
- >
if [ $TEST == 'issue' ];
then pytest --cov=. tests/issues/;
fi
- >
if [ $TEST == 'examples' ];
then pytest --cov=. --nbval tests/notebooks/;
fi
- >
if [ $TEST == 'console' ];
then pandas_profiling -h;
fi
- >
if [ $TEST == 'typing' ];
then make typing;
fi
- >
if [ $TEST == 'lint' ];
then python -m black --check --diff --quiet .;
flake8 . --select=E9,F63,F7,F82 --show-source --statistics;
fi
after_success:
- codecov -F $TEST