testing pytest/codecov

This commit is contained in:
wh1te909 2022-04-23 02:00:12 +00:00
parent bedcecb2e1
commit 2895560b30
3 changed files with 15 additions and 11 deletions

View File

@ -42,9 +42,7 @@ jobs:
cd api/tacticalrmm
source ../env/bin/activate
rm -f .coverage coverage.lcov
coverage run --concurrency=multiprocessing manage.py test -v 2 --parallel
coverage combine
coverage lcov
pytest
if [ $? -ne 0 ]; then
exit 1
fi
@ -58,9 +56,10 @@ jobs:
exit 1
fi
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./api/tacticalrmm/coverage.lcov
base-path: ./api/tacticalrmm
- name: Run django tests
env:
GHACTIONS: "yes"
run: |
cd api/tacticalrmm
source ../env/bin/activate
codecov

2
.gitignore vendored
View File

@ -53,3 +53,5 @@ nats-api.conf
ignore/
coverage.lcov
daphne.sock.lock
.pytest_cache
coverage.xml

View File

@ -1,5 +1,8 @@
coverage
coveralls
model_bakery
black
tblib
pytest
pytest-django
pytest-xdist
pytest-cov
codecov