From a56ff3287f5c33e9fb968cf1e71528c67bc29034 Mon Sep 17 00:00:00 2001 From: Jakub Michalski Date: Mon, 4 Dec 2023 13:16:05 +0100 Subject: [PATCH] Run protoplaster in renode during docs generation --- .github/workflows/docs.yml | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index df0e96a..6e9480c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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