forked from BiomedSciAI/causallib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
23 lines (23 loc) · 727 Bytes
/
.travis.yml
File metadata and controls
23 lines (23 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: python
python:
- "3.6"
- "3.7"
- "3.8"
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 -r requirements.txt
- pip install -r causallib/contrib/requirements.txt
- pip install --upgrade pytest pytest-cov
script:
- pip install -e . # test that install is running properly
- pip install -e .[contrib] # test optional install
- pip freeze
- pytest causallib/contrib/tests # -k 'not test_hemm'
- pytest --cov-report= --cov=causallib causallib/tests
after_success:
- coverage xml
- ./cc-test-reporter after-build