diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5a33c7..138ec00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,13 +35,16 @@ jobs: python3-pip telnet iptables iproute2 bc cpio rsync - name: Run scripts in Renode - uses: antmicro/renode-linux-runner-action@v0 + uses: antmicro/renode-linux-runner-action@v1 with: - shared-dir: ./ + shared-dirs: ./ renode-run: | - ./protoplaster/protoplaster -t tests/basic.yml + python -m venv .venv + source .venv/bin/activate + pip install . + protoplaster -t tests/basic.yml devices: | vivid gpio 0 32 i2c 0x1C - python-packages: git+https://github.com/antmicro/protoplaster.git + # python-packages: git+https://github.com/antmicro-labs/protoplaster.git@51947-update_github_ci diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b9c509a..09c5553 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -38,12 +38,20 @@ jobs: 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: 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/ + 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 - name: Build html uses: docker://btdi/sphinx:min @@ -61,17 +69,17 @@ jobs: name: Documentation path: docs/build/html - - name: Deploy - if: github.ref == 'refs/heads/main' - run: | - sudo chown -R $(whoami) docs - cd docs/build/html - touch .nojekyll - git init - cp ../../../.git/config ./.git/config - git add . - git config --local user.email "push@gha" - git config --local user.name "GHA" - git commit -am "update ${{ github.sha }}" - git push -u origin +HEAD:gh-pages - rm -rf .git + # - name: Deploy + # if: github.ref == 'refs/heads/main' + # run: | + # sudo chown -R $(whoami) docs + # cd docs/build/html + # touch .nojekyll + # git init + # cp ../../../.git/config ./.git/config + # git add . + # git config --local user.email "push@gha" + # git config --local user.name "GHA" + # git commit -am "update ${{ github.sha }}" + # git push -u origin +HEAD:gh-pages + # rm -rf .git