-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (39 loc) · 1.2 KB
/
build_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
46
47
48
#
# Copyright 2022 Graviti. Licensed under MIT License.
#
---
name: Build Docs
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8.0]
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: Cache python ${{ matrix.python-version }}
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/Python/${{ matrix.python-version }}
key: >-
docs-${{ matrix.os }}-${{ matrix.python-version }}-
${{ hashFiles('requirements_docs.txt') }}-
${{ hashFiles('requirements.txt') }}
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements_docs.txt
pip install -r requirements.txt
- name: Build docs
id: build_docs
run: python -m sphinx -T -E -d build/doctrees -D language=en docs/source build/html -W