Browse Source

Github Actions: Added CI for running tests on README.md snippets

Signed-off-by: Grzegorz Latosinski <glatosinski@antmicro.com>
pull/1/head
Grzegorz Latosinski 3 years ago
parent
commit
d528911978
  1. 35
      .github/workflows/test.yml

35
.github/workflows/test.yml

@ -0,0 +1,35 @@
name: Sargraph tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
readme-tests:
runs-on: ubuntu-latest
container:
image: debian:bullseye
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install dependencies
run: |
apt-get update
apt-get install -qqy --no-install-recommends python3 python3-pip git
pip3 install git+https://github.com/antmicro/tuttest.git
- name: Run README.md snippets
run: |
./scripts/test.sh
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: sargraph-sample-graphs
path: |
*.svg
*.png
*.ascii
*.html
*.txt
*.log
Loading…
Cancel
Save