Skip to content

[pre-commit.ci] pre-commit autoupdate #726

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #726

Workflow file for this run

name: docs
on:
push
jobs:
minimal_explicit_build_and_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up python
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: install dependencies
run: pip install numpy pytest
- name: build splinepy linux
run: CC=clang-12 CXX=clang++-12 python3 setup.py --minimal --debug develop
- name: test
run: pytest tests
- name: build docs
run: |
pip install -r ./docs/requirements.txt
python docs/source/handle_markdown.py
sphinx-build -W -b html docs/source docs/build -j auto
- name: deploy docs only if it is pushed to main
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
#publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build
force_orphan: true