Skip to content

Commit

Permalink
[Documentation] GH Actions needs documentation packages too for doctest
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
  • Loading branch information
jeandet committed Jan 27, 2022
1 parent f2f4fb4 commit f16806a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/PRs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: install texlive for Pandoc
run: sudo apt update && sudo apt install -y texlive
- name: Test with pytest
run: |
pip install pytest pytest-cov sphinx numpydoc sphinx-rtd-theme sphinx_gallery nbsphinx
pip install pytest pytest-cov sphinx numpydoc sphinx-rtd-theme sphinx_gallery nbsphinx pandoc
pytest --cov=./ --cov-report=xml
make doctest
- name: Upload coverage to Codecov
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: install texlive for Pandoc
run: sudo apt update && sudo apt install -y texlive
- name: Test with pytest
run: |
pip install pytest pytest-cov sphinx numpydoc sphinx-rtd-theme sphinx_gallery nbsphinx
pip install pytest pytest-cov sphinx numpydoc sphinx-rtd-theme sphinx_gallery nbsphinx pandoc
pytest --cov=./ --cov-report=xml
make doctest
- name: Upload coverage to Codecov
Expand Down

0 comments on commit f16806a

Please sign in to comment.