Skip to content

Commit ae8d0f3

Browse files
authored
Merge pull request #67 from martinRenou/build_docs_ci
Build docs in the CI
2 parents e51d50b + 6570ed3 commit ae8d0f3

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- name: Conda install dependencies
3333
run: conda install python=${{ matrix.python-version }} pip nodejs=13 ipywidgets jupyter jupyterlab vtk flake8 pytest ipydatawidgets
3434

35+
- name: Test flake8
36+
run: flake8 ipygany --ignore=E501
37+
3538
- name: Install ipygany
3639
run: pip install -e .
3740

@@ -42,5 +45,10 @@ jobs:
4245
- name: Run Python tests
4346
run: pytest tests
4447

45-
- name: Test flake8
46-
run: flake8 ipygany --ignore=E501
48+
- name: Build docs (Only on MacOS for build speed)
49+
if: matrix.os == 'macos-latest'
50+
run: |
51+
conda install sphinx sphinx_rtd_theme pygments==2.6.1 jupyter-sphinx meshpy pyvista
52+
cd docs/source/
53+
sphinx-build . _build/html
54+
cd ../..

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ipygany
22
pygments==2.6.1
3-
jupyter-sphinx==0.2.4a1
3+
jupyter-sphinx
44
vtk
55
meshpy
66
pyvista

0 commit comments

Comments
 (0)