From 1265998be5d1b05e118976d3d8a8ee372ed1b873 Mon Sep 17 00:00:00 2001 From: Murat Bilgel Date: Thu, 12 Sep 2024 15:57:39 -0400 Subject: [PATCH] fix ubuntu docs-build, add pages --- .github/workflows/pages.yml | 18 ++++++++++++++++++ .github/workflows/tests.yml | 9 ++++----- 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..a1cf6d6 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,18 @@ +name: Deploy Sphinx documentation to Pages + +on: + push: + branches: [master] # branch to trigger deployment + +jobs: + pages: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + permissions: + pages: write + id-token: write + steps: + - id: deployment + uses: sphinx-notes/pages@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0170cc8..96a2b68 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,6 @@ jobs: - { python: "3.12", os: "ubuntu-latest", session: "tests" } - { python: "3.12", os: "ubuntu-latest", session: "typeguard" } - { python: "3.12", os: "ubuntu-latest", session: "xdoctest" } - - { python: "3.12", os: "ubuntu-latest", session: "docs-build" } - { python: "3.11", os: "ubuntu-latest", session: "mypy" } - { python: "3.11", os: "ubuntu-latest", session: "tests" } - { python: "3.11", os: "ubuntu-latest", session: "xdoctest" } @@ -46,8 +45,8 @@ jobs: - name: Check out the repository uses: actions/checkout@v4 - - name: Set up R if not on Windows - if: matrix.os != 'windows-latest' + - name: Set up R if on MacOS + if: matrix.os == 'macos-latest' uses: r-lib/actions/setup-r@v2 - name: Install remotes R package if on MacOS @@ -128,14 +127,14 @@ jobs: include-hidden-files: true - name: Upload documentation - if: matrix.session == 'docs-build' + if: matrix.session == 'docs-build' && matrix.os == 'macos-latest' uses: actions/upload-artifact@v3 with: name: docs path: docs/_build coverage: - runs-on: ubuntu-latest + runs-on: macos-latest needs: tests steps: - name: Check out the repository