Support for v2.23 emod release #22
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
# This workflow will Rebuild Malaria Docs triggered when changes to pyton or documentation related files are intended. | |
name: Rebuild Malaria Docs | |
on: | |
push: | |
paths: | |
- '**.py' | |
- '**/*docs/**' | |
- '**/requirements.txt' | |
pull_request: | |
paths: | |
- '**.py' | |
- '**/*docs/**' | |
- '**/requirements.txt' | |
jobs: | |
emodpy-malaria-docs-rebuild: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Repo Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.inputs.branch }} | |
# Environment Setup | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install emodpy-malaria requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt --index-url=https://packages.idmod.org/api/pypi/pypi-production/simple | |
- name: Install the emodpy-malaria package | |
run: | | |
pip install -e . --index-url=https://packages.idmod.org/api/pypi/pypi-production/simple | |
- name: Install documentation build requirements | |
run: | | |
pip install -r docs/requirements.txt --index-url=https://packages.idmod.org/api/pypi/pypi-production/simple | |
- name: Build docs - html - no break | |
working-directory: 'docs' | |
run: | | |
make clean | |
make htmlnobreak | |
# This check won't run until issue below is addressed: | |
# https://github.com/InstituteforDiseaseModeling/emodpy-malaria/issues/284 | |
- name: Build docs linkcheck - disabled | |
working-directory: 'docs' | |
run: | | |
echo make linkcheck | |