mirror of
https://github.com/borgbase/vorta
synced 2025-01-03 05:36:19 +00:00
Integrate codecov.io. By @samuel-w (#719)
This commit is contained in:
parent
849b980ef6
commit
2f6dd6e5ed
2 changed files with 11 additions and 3 deletions
4
.coveragerc
Normal file
4
.coveragerc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[run]
|
||||||
|
omit = tests/*
|
||||||
|
source=vorta
|
||||||
|
relative_files=true
|
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
@ -39,6 +39,7 @@ jobs:
|
||||||
- name: Install Vorta
|
- name: Install Vorta
|
||||||
run: |
|
run: |
|
||||||
pip install .
|
pip install .
|
||||||
|
pip install coverage
|
||||||
pip install borgbackup
|
pip install borgbackup
|
||||||
pip install -r requirements.d/dev.txt
|
pip install -r requirements.d/dev.txt
|
||||||
# - name: Setup tmate session
|
# - name: Setup tmate session
|
||||||
|
@ -53,12 +54,15 @@ jobs:
|
||||||
export $(dbus-launch)
|
export $(dbus-launch)
|
||||||
(herbstluftwm) &
|
(herbstluftwm) &
|
||||||
sleep 3
|
sleep 3
|
||||||
pytest
|
coverage run -m pytest
|
||||||
- name: Test with pytest (macOS)
|
- name: Test with pytest (macOS)
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: |
|
run: |
|
||||||
pytest
|
coverage run -m pytest
|
||||||
|
- name: Upload coverage to Codecov
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue