-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (51 loc) · 1.63 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
49
50
51
name: Build Docs
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
env:
PYARROW_IGNORE_TIMEZONE: 1
ALTERYX_OPEN_SRC_UPDATE_CHECKER: False
jobs:
build_docs:
name: ${{ matrix.python_version }} Build Docs
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Set up python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- uses: actions/cache@v3
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ matrix.python_version }}-lint-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }}-v01
- name: Install apt requirements
run: |
sudo apt update
sudo apt install -y pandoc
python -m pip install --upgrade pip
- name: Install woodwork with doc dependencies (not using cache)
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install ".[docs]"
- name: Install woodwork with no doc dependencies (using cache)
if: steps.cache.outputs.cache-hit == 'true'
run: |
python -m pip install -e . --no-deps
- name: Build docs
run: |
make -C docs/ html
ls docs/build/html