chore: change github actions to catch build errors #81
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: Manual Pre Checks | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
workflow_dispatch: | |
jobs: | |
linkcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install Dependencies | |
run: pip install -r requirements.txt | |
- name: Clean Previous Builds | |
run: make linkcheck | |
build-docs: | |
runs-on: ubuntu-latest | |
needs: linkcheck | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install Dependencies | |
run: pip install -r requirements.txt | |
- name: Clean Previous Builds | |
run: make clean | |
- name: Build Documentation | |
run: make html SPHINXOPTS="-W" |