Run tests automatically in build

This commit is contained in:
Philipp Grathwohl 2022-02-20 11:07:13 +00:00
parent 652fbd74be
commit db5d58e49c
2 changed files with 7 additions and 3 deletions

View file

@ -27,8 +27,11 @@ jobs:
- name: Clean - name: Clean
run: python setup.py clean --all run: python setup.py clean --all
# - name: Run tests - name: Install Requirements
# run: python -m unittest tests run: pip3 install -r requirements.txt
- name: Run tests
run: coverage run --source cbpi -m pytest tests
- name: Build source distribution package for CraftBeerPi - name: Build source distribution package for CraftBeerPi
run: python setup.py sdist run: python setup.py sdist

1
.gitignore vendored
View file

@ -16,3 +16,4 @@ node_modules
.DS_Store .DS_Store
config/* config/*
logs/ logs/
.coverage