From 7dbcb550b55bbe3257a9b52c091ca541b05954c7 Mon Sep 17 00:00:00 2001 From: redteampanda-ng <31235211+redteampanda-ng@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:01:35 +0100 Subject: [PATCH] chore: change github actions to catch build errors (#49) (#50) * chore: change github actions to catch build errors --- .github/workflows/pre-checks.yml | 42 +++++++++++++++++++------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/.github/workflows/pre-checks.yml b/.github/workflows/pre-checks.yml index f0ae6e9..40fbd2b 100644 --- a/.github/workflows/pre-checks.yml +++ b/.github/workflows/pre-checks.yml @@ -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"