-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (36 loc) · 1.07 KB
/
python-test-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
# This workflow will verify that documentation can still build successfully
name: docs-test-build
# on: workflow_dispatch
on:
pull_request:
branches: [master]
paths: [website/**]
push:
branches: [master]
paths: [website/**]
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('./requirements/DEV_REQUIREMENTS.txt') }}
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements/DEV_REQUIREMENTS.txt
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: npm
cache-dependency-path: website/package-lock.json
- name: Test build
working-directory: website
run: |
npm ci
npm run build