-
-
Notifications
You must be signed in to change notification settings - Fork 315
50 lines (41 loc) · 1.06 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Docs
on:
push:
branches:
- develop
- main
- 'feature/**'
- 'release/**'
- 'fix/**'
pull_request:
branches:
- develop
- main
jobs:
docs:
runs-on: ubuntu-latest
name: Build and test package documentation
steps:
- name: Checkout code
uses: actions/checkout@v3.0.2
- name: Set up Python 3.10
uses: actions/setup-python@v4.0.0
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Check external links in the package documentation
run: tox -e linkcheck
- name: Build and test package documentation
run: tox -e docs
- name: Archive docs artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: docs
path: docs
# Artifacts are retained for 90 days by default.
# In fact, we don't need such long period.
retention-days: 60