Skip to content

Commit 6594b97

Browse files
committed
CI: install pytest and fix coverage configuration
1 parent 4c1f8a0 commit 6594b97

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.coveragerc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[run]
2+
branch = true
3+
source =
4+
mplaltair
5+
6+
[report]
7+
exclude_lines =
8+
raise NotImplemented
9+
def __str__
10+
def __repr__
11+
if __name__ == .__main__.:

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ matrix:
1818

1919
install:
2020
- python -m pip install --upgrade pip
21-
- python -m pip install --upgrade codecov coverage
21+
- python -m pip install --upgrade codecov coverage pytest
2222
- python -m pip install -ve .
2323

2424
script:
25-
- coverage run python -m pytest
25+
- coverage run run_tests.py
2626
- coverage report -m
2727
- set -e
2828
- codecov

run_tests.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python
2+
import sys
3+
import pytest
4+
5+
if __name__ == '__main__':
6+
sys.exit(pytest.main(sys.argv[1:]))

0 commit comments

Comments
 (0)