Skip to content

Update pre-commit hook rbubley/mirrors-prettier to v3.5.3 #1136

Update pre-commit hook rbubley/mirrors-prettier to v3.5.3

Update pre-commit hook rbubley/mirrors-prettier to v3.5.3 #1136

Workflow file for this run

name: "Docs: Check and Deploy"
on:
push:
branches: [main, github-actions-test]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install Packages
run: uv sync --group docs
- name: Install Pandoc [apt-get]
run: |
sudo apt-get -y install pandoc
- name: Document Validation
run: uv run numpydoc lint test/**/*.py toponetx/**/*.py
- name: Generate Docs [Sphinx]
run: uv run sphinx-build -b html -D version=latest -D release=latest docs docs/_build
- name: Deploy Docs
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'pyt-team/TopoNetX' }}
with:
branch: main
folder: docs/_build
token: ${{ secrets.DOCUMENTATION_KEY }}
repository-name: pyt-team/pyt-team.github.io
target-folder: toponetx
clean: true