mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-29 10:14:15 +01:00
Run tests automatically in build
This commit is contained in:
parent
652fbd74be
commit
db5d58e49c
2 changed files with 7 additions and 3 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -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
1
.gitignore
vendored
|
@ -16,3 +16,4 @@ node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
config/*
|
config/*
|
||||||
logs/
|
logs/
|
||||||
|
.coverage
|
Loading…
Reference in a new issue