-
Notifications
You must be signed in to change notification settings - Fork 42
38 lines (37 loc) · 1.03 KB
/
ci.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
name: Continuous integration
on:
pull_request:
jobs:
syntax-check:
name: Check syntax
runs-on: ubuntu-latest
container: python:3.11-slim
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create virtual environment
run: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- name: Syntax check
run: |
. venv/bin/activate
rstcheck --recursive --ignore-directives "tabs" source/
build-error-check:
name: Check build error
runs-on: ubuntu-latest
container: python:3.11-slim
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create virtual environment
run: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- name: Build documentation
run: |
. venv/bin/activate
sphinx-build -W -j 1 -a -D language='en' -b html source __preview