diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index b741362..3aef287 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -7,6 +7,8 @@ on: # Runs on pushes targeting the default branch push: branches: ["main"] + pull_request: + branches: ["main"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -25,9 +27,7 @@ concurrency: jobs: build: - runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v4 @@ -51,11 +51,12 @@ jobs: # Deployment job deploy: + runs-on: ubuntu-latest + needs: build + if: github.event_name == 'push' && github.ref == 'refs/heads/main' # Only run on pushes to main environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build steps: - name: Deploy to GitHub Pages id: deployment diff --git a/tox.ini b/tox.ini index af2c7b0..fc8a4f4 100644 --- a/tox.ini +++ b/tox.ini @@ -117,9 +117,13 @@ commands = basepython = python3 changedir={toxinidir}/docs extras = docs +deps = + firewheel-repo-base allowlist_externals= /usr/bin/make + /bin/mkdir commands = + mkdir -p source/model_components make html all: make singlehtml all: sphinx-build -M man source/cli build -c source