[pre-commit.ci] pre-commit autoupdate #1150
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@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 # Same as RTD | |
- name: Cache multiple paths | |
uses: actions/cache@v2 | |
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@v2 | |
with: | |
name: nbqa-docs | |
path: docs/_build/html |