Skip to content

Commit

Permalink
fix ubuntu docs-build, add pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bilgelm committed Sep 12, 2024
1 parent 9684995 commit 1265998
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 4 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1265998

Please sign in to comment.