Merge pull request #134 from antoinedemathelin/master #215
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Check docs" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install doc dependencies | |
run: | | |
sudo apt install pandoc | |
python -m pip install --upgrade pip | |
pip install jinja2==3.0.3 sphinx==4.4.0 numpydoc==1.2 nbsphinx==0.8.8 sphinx_gallery==0.10.1 sphinx_rtd_theme==1.0.0 ipython==8.0.1 | |
- name: Install adapt dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Install adapt | |
run: | | |
pip install -e . | |
- name: Build documentation | |
run: | | |
sudo rm -r -f docs/* | |
make html | |
sudo rm -r -f docs/doctrees | |
sudo rm -r -f docs/html/_sources | |
sudo rm -r -f docs/html/examples/*.ipynb | |
mv -v docs/html/* docs/ | |
sudo rm -r -f docs/html | |
touch .nojekyll | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: DocumentationHTML | |
path: docs/ |