From 2666eef321c82107c2a6e0ec3233dc72a3e90b32 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 | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index df0e96a..1315a1b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -23,6 +23,7 @@ jobs: python-version: 3.11 - name: Install protoplaster with pip run: | + pwd pip install . - name: Install tuttest run: | @@ -31,27 +32,42 @@ 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 + + - 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 + devices: | + vivid + gpio 0 32 + i2c 0x1C - name: Prepare docs template run: | cp -r .github/docs-template docs/ cp README.md docs/source/readme.md - cp protoplaster.md docs/source/ - cp report.md docs/source/ + cp ~/protoplaster.md docs/source/ + cp ~/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 ~/report.zip -d docs/source/_static/system_report - name: Build html uses: docker://btdi/sphinx:min