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
run: python setup.py clean --all
# - name: Run tests
# run: python -m unittest tests
- name: Install Requirements
run: pip3 install -r requirements.txt
- name: Run tests
run: coverage run --source cbpi -m pytest tests
- name: Build source distribution package for CraftBeerPi
run: python setup.py sdist

3
.gitignore vendored
View file

@ -15,4 +15,5 @@ node_modules
.venv*
.DS_Store
config/*
logs/
logs/
.coverage