Skip to content

Commit b53b0d8

Browse files
chore: change github actions to catch build errors
1 parent 310b39c commit b53b0d8

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

Diff for: .github/workflows/pre-checks.yml

+25-16
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
1-
# This workflow will install Python dependencies and check for broken links
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
41
name: Manual Pre Checks
52

63
on:
7-
push:
8-
branches:
9-
- "*"
104
pull_request:
11-
branches:
12-
- main
13-
- v2
14-
# Allows you to run this workflow manually from the Actions tab
5+
types: [opened, synchronize]
156
workflow_dispatch:
167

178
jobs:
189
linkcheck:
1910
runs-on: ubuntu-latest
2011
steps:
21-
- uses: actions/checkout@v4
22-
- name: link-check
23-
run: |
24-
pip install -r requirements.txt
25-
make linkcheck
26-
12+
- uses: actions/checkout@v4
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: 3.x
17+
- name: Install Dependencies
18+
run: pip install -r requirements.txt
19+
- name: Clean Previous Builds
20+
run: make linkcheck
21+
build-docs:
22+
runs-on: ubuntu-latest
23+
needs: linkcheck
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Set up Python
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: 3.x
30+
- name: Install Dependencies
31+
run: pip install -r requirements.txt
32+
- name: Clean Previous Builds
33+
run: make clean
34+
- name: Build Documentation
35+
run: make html SPHINXOPTS="-W"

0 commit comments

Comments
 (0)