Integrate codecov.io. By @samuel-w (#719)

This commit is contained in:
Samuel 2020-11-18 17:47:14 -06:00 committed by GitHub
parent 849b980ef6
commit 2f6dd6e5ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

4
.coveragerc Normal file
View File

@ -0,0 +1,4 @@
[run]
omit = tests/*
source=vorta
relative_files=true

View File

@ -39,6 +39,7 @@ jobs:
- name: Install Vorta
run: |
pip install .
pip install coverage
pip install borgbackup
pip install -r requirements.d/dev.txt
# - name: Setup tmate session
@ -53,12 +54,15 @@ jobs:
export $(dbus-launch)
(herbstluftwm) &
sleep 3
pytest
coverage run -m pytest
- name: Test with pytest (macOS)
if: runner.os == 'macOS'
run: |
pytest
coverage run -m pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: ubuntu-latest
steps: