forked from antmicro/protoplaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ci.yml
58 lines (55 loc) · 1.75 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
stages:
- code-quality-checks
- tests
- build-docs
check-code-quality:
stage: code-quality-checks
image: debian:bookworm
script:
- PATH="/root/.local/bin:$PATH"
- apt -y update
- apt -y install python3 pipx git
- pipx install yapf==0.40.2
- yapf -ipr protoplaster/
- test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; }
installation-test:
stage: tests
image: debian:bookworm
script:
- PATH="/root/.local/bin:$PATH"
- apt -y update
- apt -y install python3 python3-venv git
- python3 -m venv ./venv
- source ./venv/bin/activate
- pip install .
- cd /tmp/
- protoplaster --help
build-docs:
stage: build-docs
image: btdi/latex
script:
- PATH="/root/.local/bin:$PATH"
- apt -y update
- apt -y install python3 python3-venv git make
- python3 -m venv ./venv
- source ./venv/bin/activate
- pip install .
- pip install git+https://github.com/antmicro/tuttest
- tuttest README.md example > example.yml
- protoplaster -t example.yml --generate-docs
- protoplaster -t example.yml --csv report.csv
- protoplaster-test-report report.csv -t md
- cp -r .github/docs-template docs/
- cp README.md docs/source/readme.md
- cp protoplaster.md docs/source/
- cp report.md docs/source/
- tuttest README.md system-report-example > system-report-example.yml
- protoplaster-system-report -c system-report-example.yml
- echo -e "\`\`\`\n$(cat system-report-example.yml)\n\`\`\`" >> docs/source/system-report-example.yml
- mkdir -p docs/source/_static/system_report
- unzip report.zip -d docs/source/_static/system_report
- ./.github/scripts/sphinx.sh
- ./.github/scripts/latex.sh
artifacts:
paths:
- docs/build/html/*