Documentation build by dennisbrookner #82
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
name: Documentation | |
run-name: Documentation build by ${{ github.actor }} | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ['3.11'] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# - name: Install Miniconda | |
# uses: conda-incubator/setup-miniconda@v2 | |
# with: | |
# miniconda-version: "latest" | |
# channels: conda-forge, defaults | |
# use-only-tar-bz2: true | |
# auto-update-conda: true | |
# auto-activate-base: true | |
# | |
# - name: Install DIALS environment | |
# run: | | |
# conda create -c conda-forge -y --name dials dials | |
# conda info | |
# $CONDA/bin/activate dials | |
- name: Build with tox | |
run: | | |
pip install tox | |
tox -e build | |
- name: Build documentation with tox + Sphinx | |
run: | | |
tox -e docs | |
tox -e doctests | |
tox -e linkcheck | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: ${{ github.actor }} | |
author_email: ${{ github.actor }}@users.noreply.github.com | |
message: "Commit built documentation" | |
add: "./docs/*" | |
branch: ${{ github.ref }} |