Fix to pdocs build command issue. #189
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
# This workflows will upload a Python Package using Twine when a release is created | |
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | |
name: Build API docs | |
on: | |
push: | |
branches: [dev] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
python -m pip install --editable . | |
cd tests/cannonsim/src; make; cd ../../.. | |
pip install pdoc | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Build | |
run: | | |
export PDOC_ALLOW_EXEC=1 | |
pdoc -d numpy -o ./pdocs easyvvuq | |
- name: Publish generated content to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
folder: pdocs | |
branch: gh-pages | |
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} |