added "virtualenv<20.26.0" to poetry installation to use a safer vers… #80
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: Deploy Sphinx documentation to Pages | |
| on: | |
| push: | |
| branches: [main] | |
| env: | |
| PYTHON_VERSION: '3.11' | |
| jobs: | |
| pages: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| permissions: | |
| pages: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install System Dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y texlive-latex-extra graphviz | |
| - name: Install Python Dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel virtualenv | |
| python -m pip install "virtualenv<20.26.0" poetry | |
| poetry config virtualenvs.create false | |
| poetry install | |
| - id: deployment | |
| uses: sphinx-notes/pages@v3 | |
| with: | |
| documentation_path: ./docs/source | |
| python_version: ${{ env.PYTHON_VERSION }} | |
| checkout: false | |
| sphinx_build_options: '-b dirhtml' |