Skip to content

Commit

Permalink
chore: change github actions to catch build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
redteampanda-ng committed Jan 6, 2025
1 parent b1f75cf commit 69e00f1
Showing 1 changed file with 25 additions and 17 deletions.
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 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"

0 comments on commit 69e00f1

Please sign in to comment.