-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (39 loc) · 1015 Bytes
/
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
name: Pytket Qujax Docs
on:
push:
branches:
- 'docs/**'
pull_request:
branches:
- develop
schedule:
# 04:00 every Tuesday morning
- cron: '0 4 * * 2'
jobs:
docs:
name: build docs
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Upgrade pip and install wheel
run: pip install --upgrade pip wheel
- name: Install pytket qujax
run: |
pip install .
- name: Install docs dependencies
run: |
pip install -r .github/workflows/docs/requirements.txt
- name: Test building docs
timeout-minutes: 20
run: |
cd .github/workflows/docs
mkdir extensions
./build-docs -d ${GITHUB_WORKSPACE}/.github/workflows/docs/extensions
- uses: actions/upload-artifact@v3
with:
name: pytket-extension-docs
path: .github/workflows/docs/extensions/