Skip to content

Merge pull request #38 from Novartis/Update-documentation-build-and-e… #66

Merge pull request #38 from Novartis/Update-documentation-build-and-e…

Merge pull request #38 from Novartis/Update-documentation-build-and-e… #66

Workflow file for this run

name: Sphinx Docs
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install graphviz - Ubuntu
run: sudo apt-get install graphviz pandoc
- name: Checkout
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: '3.6.2'
- name: Install renv
run: Rscript -e "install.packages(c('renv'), repos='https://cran.rstudio.com')"
- name: Install python packages
run: pip install tox
- name: Tox
run: tox -e docs
- name: Deploy docs to gh-pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: docs
FOLDER: docs
CLEAN: true