Skip to content

Commit

Permalink
Add documentation ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanElsner committed Nov 15, 2023
1 parent 016925e commit 0ec2654
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Update documentation

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: write
id-token: write
pages: write

jobs:
build:
name: Build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[doc]
- name: Build with Sphinx
run: cd docs && make html
- name: Upload documentation artifact
uses: actions/upload-artifact@v2
with:
name: documentation
path: ./doc/_build/html
upload:
name: Upload to GitHub pages
runs-on: ubuntu-latest
needs: build
steps:
- name: Download documentation artifact
uses: actions/download-artifact@v2
with:
name: documentation
path: ./html
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Test
name: Run tests

on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:

jobs:
unittest:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0ec2654

Please sign in to comment.