diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..965d6e5 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,26 @@ +name: Pull request checks + +on: + pull_request: + branches: + - master + +jobs: + run_tests: + name: Run tests + runs-on: ubuntu-latest + steps: + - name: Checkout branch + uses: actions/checkout@v3 + + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: '3.8' + + - name: Install Python dependencies + uses: py-actions/py-dependency-install@v4 + + - name: Run tests + run: | + python -m doctest -o IGNORE_EXCEPTION_DETAIL -f tests/tests.txt diff --git a/test.sh b/test.sh index e55a3bc..a17fb6e 100755 --- a/test.sh +++ b/test.sh @@ -7,4 +7,4 @@ source venv/bin/activate python -m pip install -U pip setuptools python -m pip install -r requirements.txt -python -m doctest -o IGNORE_EXCEPTION_DETAIL -f tests/tests.txt || exit 1 +python -m doctest -o IGNORE_EXCEPTION_DETAIL -f tests/tests.txt