Skip to content

Commit bcd6018

Browse files
committed
CI: Only run doc builds and CLI tests on linux.
1 parent ab0e71c commit bcd6018

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,21 @@ jobs:
9090
pytest -v --pyargs numpydoc
9191
9292
- name: Make sure CLI works
93+
if: runner.os == 'Linux'
9394
run: |
9495
numpydoc render numpydoc.tests.test_main._capture_stdout
9596
echo '! numpydoc render numpydoc.tests.test_main._invalid_docstring' | bash
9697
numpydoc validate numpydoc.tests.test_main._capture_stdout
9798
echo '! numpydoc validate numpydoc.tests.test_main._docstring_with_errors' | bash
9899
99100
- name: Setup for doc build
101+
if: runner.os == 'Linux'
100102
run: |
101103
sudo apt update
102104
sudo apt install -y texlive texlive-latex-extra latexmk dvipng
103105
104106
- name: Build documentation
107+
if: runner.os == 'Linux'
105108
run: |
106109
make -C doc html SPHINXOPTS="-nT"
107110
make -C doc latexpdf SPHINXOPTS="-nT"

0 commit comments

Comments
 (0)