From d3c0a2ee1b1931db61a1183c6b58644f896e6eb3 Mon Sep 17 00:00:00 2001 From: rany Date: Fri, 17 May 2024 14:00:06 +0300 Subject: [PATCH] Run test scripts in GitHub Actions Signed-off-by: rany --- .github/workflows/run-tests.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..aa8002f --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,21 @@ +name: "Run tests" + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + tests: + runs-on: ubuntu-latest + name: "tests" + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.12 + - name: Install all dependencies + run: pip install . + - name: Run tests + run: ret=0; for i in tests/*.sh; do ./$i || ret=$?; done; exit $ret