Skip to content

Commit 78cd5a2

Browse files
committed
DOC: parallelize the documentation build in CI
1 parent 309cf3a commit 78cd5a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,11 @@ jobs:
114114
source activate pandas-dev
115115
python web/pandas_web.py web/pandas --target-path=web/build
116116
- name: Build documentation
117+
# num-jobs corresponds to number of CPUs in runner
118+
# https://docs.github.com/en/actions/reference/specifications-for-github-hosted-runners#supported-runners-and-hardware-resources
117119
run: |
118120
source activate pandas-dev
119-
doc/make.py --warnings-are-errors | tee sphinx.log ; exit ${PIPESTATUS[0]}
121+
doc/make.py --warnings-are-errors --num-jobs 2 | tee sphinx.log ; exit ${PIPESTATUS[0]}
120122
121123
# This can be removed when the ipython directive fails when there are errors,
122124
# including the `tee sphinx.log` in te previous step (https://github.com/ipython/ipython/issues/11547)

0 commit comments

Comments
 (0)