-
-
Notifications
You must be signed in to change notification settings - Fork 17
45 lines (36 loc) · 1.04 KB
/
validate-docs.yaml
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
name: validate-docs
on:
pull_request:
push:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Taskfile
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: 3.x
- name: Setup Go
uses: actions/setup-go@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.8"
architecture: "x64"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_docs.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r ./requirements_docs.txt
- name: Build docs website
# Ensure the docs build is sane, these docs won't be published
run: task docs:build