Bump actions/setup-python from 4 to 5 #324
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs_test | |
on: | |
pull_request: | |
branches: | |
[main] | |
push: | |
branches: | |
[main, dev] | |
# Allows you to run this workflow manually from the Actions tab | |
#workflow_dispatch: | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
jobs: | |
build_doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v5 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install -r requirements_dev.txt | |
- name: Sphinx build | |
run: | | |
#sphinx-build docs/source _build | |
cd docs | |
make html | |
make doctest | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
# Upload entire repository | |
path: './docs/build/html' |