Update mypy.yml #12
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
--- | |
# https://coderefinery.github.io/documentation/gh_workflow/ | |
name: Deploy Sphinx documentation to GitHub Pages | |
on: # yamllint disable-line rule:truthy | |
pull_request_target: | |
types: | |
- opened | |
- edited | |
- synchronize | |
- reopened | |
workflow_call: | |
permissions: | |
contents: write | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.x"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
# This is the version of the action for setting up Python, | |
# not the Python version. | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install -r requirements.txt | |
- name: Install Sphinx | |
run: | | |
python -m pip install sphinx | |
python -m pip install sphinx_rtd_theme | |
python -m pip install --upgrade myst-parser | |
python -m pip install commonmark | |
python -m pip install docutils | |
- name: Check Sphinx version | |
run: | | |
sphinx-build --version | |
sphinx-quickstart --version | |
- name: Check whether MyST parser is available | |
run: | |
python -c "import myst_parser" | |
- name: Sphinx build | |
run: | | |
sphinx-build docs docs/_build --verbose | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
publish_branch: gh-pages | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build/ | |
force_orphan: false | |
keep_files: false |