-
-
Notifications
You must be signed in to change notification settings - Fork 41
35 lines (32 loc) · 889 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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