Skip to content

Commit 46d6a6d

Browse files
committed
faster circleci tests
1 parent eb1519a commit 46d6a6d

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

.circleci/config.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,36 @@ version: 2
33
jobs:
44
lint:
55
docker:
6-
- image: ubuntu:18.04
6+
- image: circleci/python:3.7
77
steps:
88
- 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 .
1311
- run: flake8 .
1412
build:
1513
working_directory: ~/work
1614
docker:
17-
- image: ubuntu:18.04
15+
- image: circleci/python:3.7
1816
steps:
19-
- run: apt update
17+
- run: sudo apt update
2018
# <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
2422
- 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
2928
- run: pip3 check
3029
# 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
3235
# submit to codecov
33-
- run: apt install -y curl
3436
- run: bash <(curl -s https://codecov.io/bash)
3537

3638
workflows:

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ jobs:
4242
pip install pytest pytest-cov
4343
pip install -r test_requirements.txt
4444
cd test/ && MPLBACKEND=Agg pytest --cov tikzplotlib
45-
- name: Submit to codecov
46-
run: bash <(curl -s https://codecov.io/bash) -R ~/work/tikzplotlib
45+
# - name: Submit to codecov
46+
# run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)