Skip to content

Commit

Permalink
Fix renode test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichalski-ant committed Dec 4, 2023
1 parent 6b7c9f0 commit 53f643a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
36 changes: 22 additions & 14 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 53f643a

Please sign in to comment.