mirror of
https://github.com/bvanroll/python-vault-db.git
synced 2025-08-28 19:42:45 +00:00
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:
21
.github/workflows/python-test.yml
vendored
Normal file
21
.github/workflows/python-test.yml
vendored
Normal 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
7
test/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import unittest
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Reference in New Issue
Block a user