bump up python action + test 3.14 (#57) #49
This file contains hidden or 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: Publish JupyterBook to GitHub Pages | |
| on: | |
| push: # trigger build only when push to main | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: Install Python dependencies | |
| run: | | |
| sudo apt-get install python3-pip graphviz | |
| pip install -r requirements.txt | |
| pip install ghp-import | |
| PATH="${PATH}:${HOME}/.local/bin" | |
| - name: Install ppmpy | |
| run: pip install --editable . | |
| - name: version list | |
| run: | | |
| jupyter-book --version | |
| pip list | grep -i docutils | |
| - name: Build book HTML | |
| run: | | |
| jupyter-book build --all ./docs | |
| - name: Push _build/html to gh-pages | |
| run: | | |
| sudo chown -R $(whoami):$(whoami) . | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "$GITHUB_ACTOR" | |
| git remote set-url origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY" | |
| ghp-import ./docs/_build/html -f -p -n |