@@ -3,34 +3,36 @@ version: 2
3
3
jobs :
4
4
lint :
5
5
docker :
6
- - image : ubuntu:18.04
6
+ - image : circleci/python:3.7
7
7
steps :
8
8
- checkout
9
- - run : apt update
10
- - run : apt install -y python3-pip
11
- - run : pip3 install -U black flake8
12
- - run : LC_ALL=C.UTF-8 black --check .
9
+ - run : pip3 install -U black flake8 --user
10
+ - run : black --check .
13
11
- run : flake8 .
14
12
build :
15
13
working_directory : ~/work
16
14
docker :
17
- - image : ubuntu:18.04
15
+ - image : circleci/python:3.7
18
16
steps :
19
- - run : apt update
17
+ - run : sudo apt update
20
18
# <https://stackoverflow.com/a/44333806/353337>
21
- - run : DEBIAN_FRONTEND=noninteractive apt install tzdata
22
- - run : apt install -y texlive-latex-base texlive-latex-extra python3-pip python3-tk python3-scipy
23
- - run : pip3 install -U pytest pytest-cov excode
19
+ - run : DEBIAN_FRONTEND=noninteractive sudo apt install tzdata
20
+ - run : sudo apt install -y texlive-latex-base texlive-latex-extra
21
+ - run : pip3 install -U pytest pytest-cov excode --user
24
22
- checkout
25
- - run : cd ~/work
26
- - run : excode README.md test/zzz_readme_test.py --filter python,test
27
- - run : pip3 install -r test_requirements.txt
28
- - run : pip3 install .[all]
23
+ - run :
24
+ command : excode README.md test/zzz_readme_test.py --filter python,test
25
+ working_directory : work/
26
+ - run : pip3 install -r test_requirements.txt --user
27
+ - run : pip3 install .[all] --user
29
28
- run : pip3 check
30
29
# The actual test
31
- - run : cd test/ && MPLBACKEND=Agg pytest --cov tikzplotlib
30
+ - run :
31
+ command : pytest --cov tikzplotlib
32
+ working_directory : test/
33
+ environment :
34
+ MPLBACKEND : Agg
32
35
# submit to codecov
33
- - run : apt install -y curl
34
36
- run : bash <(curl -s https://codecov.io/bash)
35
37
36
38
workflows :
0 commit comments