Add Tests and Coverage report (#341)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user