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