improvements to the tests, and added testing to the pipeline. Now a package won't publish if it doesn't test :)

This commit is contained in:
2021-03-24 13:52:05 +01:00
parent fbf0277dd1
commit 9c4581cb72
2 changed files with 28 additions and 0 deletions

21
.github/workflows/python-test.yml vendored Normal file
View File

@@ -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

7
test/__init__.py Normal file
View File

@@ -0,0 +1,7 @@
import unittest
if __name__ == '__main__':
unittest.main()