-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (46 loc) · 1.8 KB
/
documentation.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
name: documentation check
on:
push:
pull_request:
branches: [ "master", "dev" , "experimental" ]
jobs:
readme_check:
name: Readme check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Run script and save results
run: python docs/script/make_doc.py README.tmp
- name: Compare temp file with readme.rst
run: diff -u --strip-trailing-cr README.rst README.tmp
hon_examples_check:
name: Check hon_example
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Run script and save results
run: python docs/script/process_examples.py docs/examples/hon_example.rst docs/hon_example.tmp
- name: Compare temp file with hon_example.rst
run: diff -u --strip-trailing-cr docs/hon_example.rst docs/hon_example.tmp
smartair2_examples_check:
name: Check smartair2_example
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Run script and save results
run: python docs/script/process_examples.py docs/examples/smartair2_example.rst docs/smartair2_example.tmp
- name: Compare temp file with smartair2_example.rst
run: diff -u --strip-trailing-cr docs/smartair2_example.rst docs/smartair2_example.tmp
usb_2_uart_boards:
name: Check usb_2_uart_boards
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Run script and save results
run: python docs/script/process_examples.py docs/examples/usb_2_uart_boards.rst docs/usb_2_uart_boards.tmp
- name: Compare temp file with usb_2_uart_boards.rst
run: diff -u --strip-trailing-cr docs/usb_2_uart_boards.rst docs/usb_2_uart_boards.tmp