From 860acbd52bb56e39b9380dd3f24d4d07bde4a20b Mon Sep 17 00:00:00 2001 From: swayaminsync Date: Mon, 19 Jan 2026 10:34:29 +0530 Subject: [PATCH 1/2] enable doc building at PR time --- .github/workflows/build_docs.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index baaff53..3c7a8d6 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -4,11 +4,9 @@ on: push: branches: - main - # pull_request: - # paths: - # - 'docs/**' - # - 'src/**' - # - '.github/workflows/build_docs.yml' + pull_request: + branches: + - main workflow_dispatch: # Make sure this job can be triggered manually jobs: @@ -21,13 +19,14 @@ jobs: steps: - uses: actions/checkout@v6 - uses: actions/configure-pages@v5 + if: github.event_name != 'pull_request' - uses: actions/setup-python@v6 with: python-version: "3.13" - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install "numpy @ git+https://github.com/numpy/numpy.git" pytest meson meson-python + python -m pip install numpy pytest meson meson-python - name: Build quaddtype package run: | python -m pip install . -v @@ -37,9 +36,11 @@ jobs: cd docs/ sphinx-build -b html . _build/html - name: Upload artifact + if: github.event_name != 'pull_request' uses: actions/upload-pages-artifact@v4 with: path: "./docs/_build/html" - name: Deploy to GitHub Pages + if: github.event_name != 'pull_request' id: deployment uses: actions/deploy-pages@v4 From 05c3ee749395d51cb0c06039ce03474378c6711c Mon Sep 17 00:00:00 2001 From: swayaminsync Date: Tue, 20 Jan 2026 12:17:59 +0530 Subject: [PATCH 2/2] allow artifact upload and setup --- .github/workflows/build_docs.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 3c7a8d6..d9fd750 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -19,7 +19,6 @@ jobs: steps: - uses: actions/checkout@v6 - uses: actions/configure-pages@v5 - if: github.event_name != 'pull_request' - uses: actions/setup-python@v6 with: python-version: "3.13" @@ -36,7 +35,6 @@ jobs: cd docs/ sphinx-build -b html . _build/html - name: Upload artifact - if: github.event_name != 'pull_request' uses: actions/upload-pages-artifact@v4 with: path: "./docs/_build/html"