Skip to content

Commit c9204f4

Browse files
committed
gh-actions: install deps
1 parent d73c159 commit c9204f4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,20 @@ jobs:
2727
with:
2828
python-version: "3.x"
2929
- uses: actions/checkout@v1
30+
- name: Install dependencies
31+
run: sudo apt-get install -y texlive-latex-base texlive-latex-extra python3-tk python3-scipy
3032
- name: Install package
3133
run: |
3234
pip install --upgrade pip
3335
pip install .
36+
- name: Extract tests from README
37+
run: |
38+
pip install excode
39+
excode README.md test/zzz_readme_test.py --filter python,test
3440
- name: Test with pytest
3541
run: |
3642
pip install pytest pytest-cov
37-
pytest --cov tikzplotlib
43+
pip install -r test_requirements.txt
44+
MPLBACKEND=Agg pytest --cov tikzplotlib
3845
- name: Submit to codecov
3946
run: bash <(curl -s https://codecov.io/bash) -R ~/work

0 commit comments

Comments
 (0)