forked from BiomedSciAI/causallib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (24 loc) · 796 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
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
cache: pip
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
install:
- pip install --upgrade pip
- pip install --upgrade importlib-metadata # Solve a python 3.7 install bug: https://app.travis-ci.com/github/IBM/causallib/jobs/566048347
- pip install --upgrade pytest coverage
- pip install . # test local installation is running properly
- pip install .[contrib] # test optional install
script:
- pip freeze --all
- coverage run --source=. --omit=*__init__.py,setup.py -m pytest
after_success:
- coverage report
- coverage xml
- ./cc-test-reporter after-build