Skip to content

Commit 76ee1b9

Browse files
committed
test with tox
1 parent 2c44bce commit 76ee1b9

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

.circleci/config.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
- image: circleci/python:3.7
77
steps:
88
- checkout
9-
- run: pip3 install -U black flake8 --user
9+
- run: pip install black flake8
1010
- run: black --check .
1111
- run: flake8 .
1212
build:
@@ -18,18 +18,11 @@ jobs:
1818
# <https://stackoverflow.com/a/44333806/353337>
1919
- run: DEBIAN_FRONTEND=noninteractive sudo apt install tzdata
2020
- 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
2222
- checkout
2323
- 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
2724
# The actual test
28-
- run:
29-
command: pytest --cov tikzplotlib
30-
working_directory: test/
31-
environment:
32-
MPLBACKEND: Agg
25+
- run: tox
3326
# submit to codecov
3427
- run: bash <(curl -s https://codecov.io/bash)
3528

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,11 @@ jobs:
3131
- uses: actions/checkout@v2
3232
- name: Install dependencies
3333
run: sudo apt-get install -y texlive-latex-base texlive-latex-extra context python3-tk
34-
- name: Install package
35-
run: |
36-
pip install .
3734
- name: Extract tests from README
3835
run: |
3936
pip install excode
4037
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
4640
# - name: Submit to codecov
4741
# run: bash <(curl -s https://codecov.io/bash)

test_requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

0 commit comments

Comments
 (0)