Skip to content

Commit

Permalink
Use new action
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichalski-ant committed Feb 9, 2024
1 parent f94e442 commit 7570827
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Generate and publish docs

on:
push:
branches:
- main
# branches:
# - main
pull_request:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -33,44 +33,23 @@ jobs:
tuttest README.md example > example.yml
protoplaster -t example.yml --generate-docs
- name: Prepare drive image for results from Renode
run: |
truncate drive.img -s 128MB
mkfs.ext4 drive.img
- name: Generate test report in Renode
uses: antmicro/renode-linux-runner-action@v1
uses: antmicro-labs/renode-linux-runner-action@shared_dirs_improvements
with:
board: custom
resc: ${{ github.workspace }}/.github/test_platform/init.resc
repl: ${{ github.workspace }}/.github/test_platform/platform.repl
arch: riscv64
kernel: ${{ github.workspace }}/.github/test_platform/kernel-riscv64-hifive_unleashed_virtio.tar.xz
shared-dirs: ./
renode-run: |
python -m venv .venv
source .venv/bin/activate
pip install .
protoplaster -t example.yml --csv report.csv
protoplaster-test-report report.csv -t md
mkdir -p host_dir
mount /dev/vdb host_dir
cp report.md host_dir/report.md
umount host_dir
devices: |
gpio 0 32
i2c 0x3C
i2c 0x70
tasks: |
${{ github.workspace }}/.github/test_platform/renode_network.yml
${{ github.workspace }}/.github/test_platform/v4l2.yml
- name: Read report from image
run: |
mkdir guest_out
sudo mount drive.img guest_out
cp guest_out/report.md report.md
- name: Generate system report from yml
run: |
tuttest README.md system-report-example > system-report-example.yml
Expand Down

0 comments on commit 7570827

Please sign in to comment.