Add Tests and Coverage report (#341)

This commit is contained in:
aeon0
2021-12-28 14:40:28 +01:00
committed by GitHub
parent 3b6e92fcb1
commit 7eef36c2df
7 changed files with 56 additions and 5 deletions
+8 -2
View File
@@ -39,9 +39,15 @@ jobs:
run: |
C:\Miniconda\condabin\conda.bat init powershell
set PYTHONPATH=./src
- name: Pytest
- name: Pytest & Coverage
shell: powershell
run: |
C:\Miniconda\condabin\conda.bat activate botty
python -c "import sys; print(sys.version)"
pytest -v -s
coverage run --source=./src -m pytest -v -s
coverage xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
verbose: true
files: ./coverage.xml