forked from ydataai/ydata-profiling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (47 loc) · 1.3 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
os: linux
dist: bionic
language: python
cache:
pip: true
directories:
- data/
jobs:
allow_failures:
- python: 3.9-dev
python:
- 3.6
- 3.7
- 3.8
# - 3.9-dev
env:
- TEST=unit PANDAS="<1"
- TEST=issue PANDAS="<1"
- TEST=console PANDAS="<1"
- TEST=examples PANDAS="<1"
- TEST=lint PANDAS="<1"
- TEST=typing PANDAS="<1"
- TEST=unit PANDAS=">=1"
- TEST=issue PANDAS=">=1"
- TEST=console PANDAS=">=1"
- TEST=examples PANDAS=">=1"
- TEST=lint PANDAS=">=1"
- TEST=typing PANDAS=">=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 pytest --mypy -m mypy .; fi
- if [ $TEST == 'lint' ]; then pytest --black -m black src/; flake8 . --select=E9,F63,F7,F82 --show-source --statistics; fi
after_success:
- codecov -F $TEST