Update pre-commit hook astral-sh/ruff-pre-commit to v0.9.7 #1125
Workflow file for this run
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: 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 |