-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (47 loc) · 1.57 KB
/
emodpy-snt-docs-rebuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This workflow will Rebuild SNT Docs triggered when changes to pyton or documentation related files are intended.
name: Rebuild SNT Docs
on:
push:
paths:
- '**.py'
- '**/*docs/**'
- '**/requirements.txt'
pull_request:
paths:
- '**.py'
- '**/*docs/**'
- '**/requirements.txt'
jobs:
emodpy-snt-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-snt 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-snt 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