Skip to content

Commit

Permalink
Run protoplaster in renode during docs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichalski-ant committed Dec 4, 2023
1 parent 35bfdd5 commit a56ff32
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,47 @@ jobs:
- name: Generate docs from yml
run: |
tuttest README.md example > example.yml
protoplaster -t example.yml --generate-docs
- name: Generate test report from yml
run: |
protoplaster -t example.yml --csv report.csv
protoplaster-test-report report.csv -t md
# - name: Generate test report from yml
# run: |
# protoplaster -t example.yml --csv report.csv
# protoplaster-test-report report.csv -t md

- name: Generate system report from yml
run: |
tuttest README.md system-report-example > system-report-example.yml
protoplaster-system-report -c system-report-example.yml --sudo
pwd
- name: Run protoplaster in Renode
uses: antmicro/renode-linux-runner-action@v1
with:
shared-dirs: ./
renode-run: |
python -m venv .venv
source .venv/bin/activate
pip install .
protoplaster -t example.yml --generate-docs
protoplaster -t example.yml --csv report.csv
protoplaster-test-report report.csv -t md
protoplaster-system-report -c system-report-example.yml
pwd
ls
devices: |
vivid
gpio 0 32
i2c 0x1C
- name: Prepare docs template
run: |
pwd
ls
cp -r .github/docs-template docs/
cp README.md docs/source/readme.md
cp protoplaster.md docs/source/
cp report.md docs/source/
cp home/protoplaster.md docs/source/
cp home/report.md docs/source/
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
unzip home/report.zip -d docs/source/_static/system_report
- name: Build html
uses: docker://btdi/sphinx:min
Expand Down

0 comments on commit a56ff32

Please sign in to comment.