From 33a61693e51f865e44683fb441d5a304c5288db1 Mon Sep 17 00:00:00 2001 From: David Maxson Date: Tue, 7 Nov 2023 11:54:00 -0800 Subject: [PATCH] Update docs build action. Include 3.11. --- .github/workflows/docs.yml | 25 ++++++++++++++++--------- .github/workflows/test_examples.yml | 2 +- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6368ebf..fdaa55b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,15 +4,22 @@ on: - push jobs: - docs_build: + docs: runs-on: ubuntu-latest + permissions: + id-token: write + contents: read steps: - - uses: actions/checkout@v3 - - uses: ammaraskar/sphinx-action@master - with: - docs-folder: "docs/" + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + cache: 'pip' # caching pip dependencies + - run: pip install -r docs/requirements.txt + - run: cd docs && make html - - uses: actions/upload-artifact@v1 - with: - name: DocumentationHTML - path: docs/_build/html/ + - uses: actions/upload-artifact@v3 + with: + name: DocumentationHTML + path: docs/build/html/ + retention-days: 30 diff --git a/.github/workflows/test_examples.yml b/.github/workflows/test_examples.yml index 7e027ba..097b8b1 100644 --- a/.github/workflows/test_examples.yml +++ b/.github/workflows/test_examples.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.7', '3.8', '3.9', '3.10' ] + python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ] name: Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v3