Skip to content

Commit 63a8954

Browse files
committed
doc: fix build_docs test on travis and add to github ci
Travis CI build failed build_doc due to missing sphinx-tabs. Add the package for travis. Also github was not building docs at all. Add builiding docs.
1 parent c8ccfbe commit 63a8954

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ jobs:
219219
case "$PYTHON_VERSION" in nightly) echo skipping xapian build;; *) make && sudo make install; esac
220220
221221
- name: Install pytest and other packages needed for running tests
222-
run: pip install flake8 mock pytest pytest-cov requests
222+
run: pip install flake8 mock pytest pytest-cov requests sphinx-tabs
223223

224224
- name: Test build roundup and install locale so lang tests work.
225225
run: |
@@ -258,6 +258,9 @@ jobs:
258258
pytest -v -r a --durations=20 test/ --cov=roundup
259259
fi
260260
261+
- name: Build docs
262+
run: python ./setup.py build_doc
263+
261264
- name: Upload coverage to Codecov
262265
# see: https://github.com/codecov/codecov-action#usage
263266
uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # v3.1.5

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ script:
182182
- if [[ "$TRAVIS_PYTHON_VERSION" == "2."* ]]; then
183183
python -m pytest -v -r a --maxfail=5 test/ --cov=roundup;
184184
fi
185+
- python -m pip install sphinx-tabs
185186
- ./setup.py build_doc
186187

187188
after_success:

0 commit comments

Comments
 (0)