From d528911978e899d2fb31e400e02e132d934b3fb7 Mon Sep 17 00:00:00 2001 From: Grzegorz Latosinski Date: Mon, 16 Jan 2023 11:52:11 +0100 Subject: [PATCH] Github Actions: Added CI for running tests on README.md snippets Signed-off-by: Grzegorz Latosinski --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1afe2c6 --- /dev/null +++ b/.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