Skip to content

Commit 8ce7362

Browse files
committed
updates to allow matplotlib graphics tests to run and not hang
1 parent 6402c18 commit 8ce7362

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎.github/workflows/master.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ jobs:
3636
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3737
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3838
- name: Test with pytest
39-
run: |
40-
pytest --ignore=W605
39+
uses: GabrielBB/xvfb-action@v1.2
40+
with:
41+
run: |
42+
pytest --ignore=W605
43+
env:
44+
MPLBACKEND: TkAgg
4145

4246
codecov:
4347
# If all tests pass:

‎.travis.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
dist: xenial
12
language: python
23
python:
34
- "3.7"
5+
services:
6+
- xvfb
47

58
install:
69
- pip install -r requirements.txt
710
- pip list
811
- pip install -e .
912

1013
env:
11-
- MPLBACKEND=Agg
14+
- MPLBACKEND=TkAgg
1215

1316
script:
1417
# your test script goes here

0 commit comments

Comments
 (0)