Skip to content

MALADA for 2D systems #58

MALADA for 2D systems

MALADA for 2D systems #58

Workflow file for this run

name: docs
on:
pull_request:
branches:
- master
- develop
- main
push:
branches:
- main
- develop
jobs:
test-docstrings:
runs-on: ubuntu-18.04
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Upgrade pip
run: python3 -m pip install --upgrade pip
- name: Install dependencies
run: pip install -qU pydocstyle
- name: Check docstrings
run: pydocstyle --convention=numpy malada
build-and-deploy-pages:
needs: test-docstrings
runs-on: ubuntu-18.04
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # 0 fetches complete history and tags
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Upgrade pip
run: python3 -m pip install --upgrade pip
- name: Install dependencies
run: |
pip install -q -r docs/requirements.txt
- name: Build API and docs
run: |
sphinx-apidoc -o docs/source/api malada
sphinx-build -W --keep-going -b html -d docs/_build/doctrees docs/source docs/_build/html
mv -v docs/_build/html public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public