File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
3
orbs :
4
- python : circleci/python@0 .2.1
4
+ python : circleci/python@1 .2.1
5
5
6
6
jobs :
7
7
build-and-test :
8
8
executor : python/default
9
9
steps :
10
10
- checkout
11
- - python/load-cache
12
- - python/ install-deps
11
+ - run :
12
+ command : pip install --user -r requirements.txt
13
13
- run :
14
14
command : pip install --user -r requirements-dev.txt
15
- - python/save-cache
16
15
- run :
17
16
command : python -m pybbda.data.tools.update --data-source Lahman --make-dirs
18
17
name : Update Lahman
32
31
command : make lint
33
32
name : Lint
34
33
- run :
35
- command : make test
34
+ command : make coverage
36
35
name : Test
37
36
- run :
38
37
command : make test-markov
Original file line number Diff line number Diff line change 43
43
make lint
44
44
- name : Test with pytest
45
45
run : |
46
- make test
46
+ make coverage
47
47
- name : Test Markov CLI
48
48
run : |
49
49
make test-markov
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ test-markov: install
26
26
-i 1 henderi01_1982 \
27
27
-i 4 ruthba01_1927
28
28
29
+ coverage : install-dev
30
+ python -m pytest --cov=pybbda tests/
31
+
29
32
test : install-dev
30
33
python -m pytest tests/
31
34
Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ black==19.3b0
8
8
flake8 == 3.7.8
9
9
sphinx-rtd-theme == 0.4.3
10
10
sphinx-gallery == 0.7.0
11
+ pytest-cov ~= 2.10.1
12
+ pytest-xdist ~= 2.1.0
You can’t perform that action at this time.
0 commit comments