Tox integration & use in GitHub actions #1
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: Build surmise documentation | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
build_pypkg_sphinx: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.12"] | |
steps: | |
##-- General Setup Steps | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup python with tox | |
run: ./.github/workflows/install_tox.sh | |
- name: Install LaTeX | |
run: sudo apt-get install texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra latexmk | |
- name: Build sphinx docs | |
run: tox -r -e pdf,html | |
##-- Make documents available as artifacts | |
- name: Archive surmise docs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: surmise-sphinx-docs | |
path: | | |
docs/build_html | |
docs/build_pdf |