[pre-commit.ci] pre-commit autoupdate #1207
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 | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
docs: | |
name: "Running: ${{ matrix.tox-env-name }}" | |
strategy: | |
matrix: | |
tox-env-name: ["docs", "docs-links"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 # Same as RTD | |
- name: Cache multiple paths | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: docs | |
- name: install-tox | |
run: python -m pip install --upgrade tox virtualenv setuptools pip | |
- name: run ${{ matrix.tox-env-name }} | |
run: tox -e ${{ matrix.tox-env-name }} | |
- name: Upload docs artifact | |
if: ${{ matrix.tox-env-name }} == "docs" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nbqa-docs | |
path: docs/_build/html |