-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: change github actions to catch build errors
- Loading branch information
1 parent
b1f75cf
commit 69e00f1
Showing
1 changed file
with
25 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,35 @@ | ||
# This workflow will install Python dependencies and check for broken links | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Manual Pre Checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- main | ||
- v4 | ||
- v3 | ||
# Allows you to run this workflow manually from the Actions tab | ||
types: [opened, synchronize] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
linkcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: link-check | ||
run: | | ||
pip install -r requirements.txt | ||
make linkcheck | ||
- 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 | ||
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" |