Fix new locals semantic in python 3.13 - see PEP 667 #390
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: Documentation | |
on: [push, pull_request] | |
jobs: | |
Build: | |
# Use the "reusable workflow" from the hyperspy organisation | |
uses: hyperspy/.github/.github/workflows/doc.yml@main | |
with: | |
# install with speed extra to avoid warnings | |
pip_extra_doc: 'doc,speed' | |
# graphviz is required to build mermaid graph | |
# optipng is required to optimize thumbnail | |
install_package_ubuntu: graphviz optipng | |
Push_dev: | |
needs: Build | |
# Push only on the "RELEASE_next_minor" and update the "dev" documentation | |
if: ${{ github.repository_owner == 'hyperspy' && github.ref_name == 'RELEASE_next_minor' }} | |
permissions: | |
# needs write permission to push the docs to gh-pages | |
contents: write | |
# Use the "reusable workflow" from the hyperspy organisation | |
uses: hyperspy/.github/.github/workflows/push_doc.yml@main | |
with: | |
repository: 'hyperspy/hyperspy-doc' | |
output_path: 'dev' | |
secrets: | |
access_token: ${{ secrets.PAT_DOCUMENTATION }} | |
Push_tag: | |
needs: Build | |
# Push only on tag and update the "current" documentation | |
if: ${{ github.repository_owner == 'hyperspy' && startsWith(github.ref, 'refs/tags/') }} | |
permissions: | |
# needs write permission to push the docs to gh-pages | |
contents: write | |
# Use the "reusable workflow" from the hyperspy organisation | |
uses: hyperspy/.github/.github/workflows/push_doc.yml@main | |
with: | |
repository: 'hyperspy/hyperspy-doc' | |
output_path: 'current' | |
secrets: | |
access_token: ${{ secrets.PAT_DOCUMENTATION }} |