-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (39 loc) · 1.06 KB
/
build_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
41
42
43
44
45
46
47
48
name: Documentation
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: {}
concurrency:
group: docs-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test_qadence_ubuntu:
name: docs (ubuntu)
runs-on: ubuntu-latest
steps:
- name: Checkout Qadence
uses: actions/checkout@v4
- name: Install JetBrains Mono font
run: |
sudo apt install -y wget unzip fontconfig
wget https://download.jetbrains.com/fonts/JetBrainsMono-2.304.zip
unzip JetBrainsMono-2.304.zip -d JetBrainsMono
mkdir -p /usr/share/fonts/truetype/jetbrains
cp JetBrainsMono/fonts/ttf/*.ttf /usr/share/fonts/truetype/jetbrains/
fc-cache -f -v
- name: Install graphviz
run: sudo apt-get install -y graphviz
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Hatch
run: |
pip install hatch
- name: Build docs
run: |
hatch -v run docs:build