From 9c4581cb7255f8641b07c34967e5969a6499698b Mon Sep 17 00:00:00 2001 From: bvanroll Date: Wed, 24 Mar 2021 13:52:05 +0100 Subject: [PATCH] improvements to the tests, and added testing to the pipeline. Now a package won't publish if it doesn't test :) --- .github/workflows/python-test.yml | 21 +++++++++++++++++++++ test/__init__.py | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/python-test.yml create mode 100644 test/__init__.py diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml new file mode 100644 index 0000000..c124c8d --- /dev/null +++ b/.github/workflows/python-test.yml @@ -0,0 +1,21 @@ +name: Unit test runner + +on: push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Test #TODO use a testing solution that won't be deprecated soon + run: | + python setup.py test + diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..b7dd8a2 --- /dev/null +++ b/test/__init__.py @@ -0,0 +1,7 @@ +import unittest + + + + +if __name__ == '__main__': + unittest.main()