File tree Expand file tree Collapse file tree 4 files changed +16
-19
lines changed Expand file tree Collapse file tree 4 files changed +16
-19
lines changed Original file line number Diff line number Diff line change 6
6
- image : circleci/python:3.7
7
7
steps :
8
8
- checkout
9
- - run : pip3 install -U black flake8 --user
9
+ - run : pip install black flake8
10
10
- run : black --check .
11
11
- run : flake8 .
12
12
build :
@@ -18,18 +18,11 @@ jobs:
18
18
# <https://stackoverflow.com/a/44333806/353337>
19
19
- run : DEBIAN_FRONTEND=noninteractive sudo apt install tzdata
20
20
- run : sudo apt install -y texlive-latex-base texlive-latex-extra context
21
- - run : pip3 install -U pytest pytest-cov excode --user
21
+ - run : pip install excode
22
22
- checkout
23
23
- run : excode README.md test/zzz_readme_test.py --filter python,test
24
- - run : pip3 install -r test_requirements.txt --user
25
- - run : pip3 install .[all] --user
26
- - run : pip3 check
27
24
# The actual test
28
- - run :
29
- command : pytest --cov tikzplotlib
30
- working_directory : test/
31
- environment :
32
- MPLBACKEND : Agg
25
+ - run : tox
33
26
# submit to codecov
34
27
- run : bash <(curl -s https://codecov.io/bash)
35
28
Original file line number Diff line number Diff line change @@ -31,17 +31,11 @@ jobs:
31
31
- uses : actions/checkout@v2
32
32
- name : Install dependencies
33
33
run : sudo apt-get install -y texlive-latex-base texlive-latex-extra context python3-tk
34
- - name : Install package
35
- run : |
36
- pip install .
37
34
- name : Extract tests from README
38
35
run : |
39
36
pip install excode
40
37
excode README.md test/zzz_readme_test.py --filter python,test
41
- - name : Test with pytest
42
- run : |
43
- pip install pytest pytest-cov
44
- pip install -r test_requirements.txt
45
- cd test/ && MPLBACKEND=Agg pytest --cov tikzplotlib
38
+ - name : Test with tox
39
+ run : tox
46
40
# - name: Submit to codecov
47
41
# run: bash <(curl -s https://codecov.io/bash)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [tox]
2
+ envlist = py3
3
+ isolated_build = True
4
+
5
+ [testenv]
6
+ deps =
7
+ pandas
8
+ pytest
9
+ pytest-cov
10
+ commands =
11
+ pytest --cov {envsitepackagesdir}/tikzplotlib --cov-report xml --cov-report term
You can’t perform that action at this time.
0 commit comments