Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change github actions to catch build errors #49

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 25 additions & 17 deletions .github/workflows/pre-checks.yml
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 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"
Loading