mirror of https://github.com/pyodide/pyodide.git
Build docs in CI (#983)
This commit is contained in:
parent
8cc3c33550
commit
e205121806
|
@ -19,6 +19,26 @@ jobs:
|
|||
name: lint
|
||||
command: make lint
|
||||
|
||||
build-docs:
|
||||
working_directory: ~/repo
|
||||
|
||||
docker:
|
||||
- image: python:3.8-alpine
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
- run:
|
||||
name: Install prerequisites
|
||||
command: pip install -r docs/requirements-doc.txt
|
||||
|
||||
- run:
|
||||
name: Build docs
|
||||
command: python3 -m sphinx -M html docs docs/_build
|
||||
|
||||
- store_artifacts:
|
||||
path: /root/repo/docs/_build/
|
||||
|
||||
build-core:
|
||||
<<: *defaults
|
||||
steps:
|
||||
|
@ -234,6 +254,7 @@ workflows:
|
|||
build-and-deploy:
|
||||
jobs:
|
||||
- lint
|
||||
- build-docs
|
||||
- build-core:
|
||||
filters:
|
||||
tags:
|
||||
|
@ -290,6 +311,7 @@ workflows:
|
|||
- test-core-chrome
|
||||
- test-packages-chrome
|
||||
- test-emsdk
|
||||
- build-docs
|
||||
filters:
|
||||
branches:
|
||||
ignore: /.*/
|
||||
|
@ -304,6 +326,7 @@ workflows:
|
|||
- test-core-chrome
|
||||
- test-packages-chrome
|
||||
- test-emsdk
|
||||
- build-docs
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
|
|
Loading…
Reference in New Issue