using python 3.x for tests #179
Workflow file for this run
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: Docs | |
on: [push, pull_request] | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup Python 3.12 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.12 | |
- name: Install pandoc | |
run: | | |
sudo apt-get update | |
sudo apt-get install pandoc | |
- name: Install doc requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r doc_requirements.txt | |
- name: Install MPI | |
uses: mpi4py/setup-mpi@v1 | |
- name : Install Bingo requirements (for tutorials) | |
run: | | |
pip install -r requirements.txt | |
- name: Set safe forking var | |
run: | | |
echo "RDMAV_FORK_SAFE=1" >> $GITHUB_ENV | |
- name: Build docs | |
run: | | |
sphinx-apidoc -f -o docs/source/_apidocs bingo | |
sphinx-build -b html docs/source/ docs/build/html | |
- name: Deploy to gh-pages branch | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/master' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/build/html |