no coverage :/
This commit is contained in:
parent
936e721fa2
commit
a24cbbf709
2 changed files with 3 additions and 10 deletions
11
.github/workflows/build_lint_test.yaml
vendored
11
.github/workflows/build_lint_test.yaml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: ytld-sub build
|
name: ytld-sub build, lint, test
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
|
|
@ -22,12 +22,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip install .[lint]
|
pip install .[lint]
|
||||||
./tools/linter check
|
./tools/linter check
|
||||||
- name: Run tests
|
- name: Run tests with coverage
|
||||||
run: |
|
run: |
|
||||||
pip install .[test]
|
pip install .[test]
|
||||||
./tools/test lcov
|
./tools/test
|
||||||
- name: Report coverage
|
|
||||||
uses: vebr/jest-lcov-reporter@v0.2.0
|
|
||||||
with:
|
|
||||||
lcov-file: coverage.lcov
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
if [ $1 = "html" ]; then
|
if [ $1 = "html" ]; then
|
||||||
coverage run -m pytest && coverage html
|
coverage run -m pytest && coverage html
|
||||||
elif [ $1 = "lcov" ]; then
|
|
||||||
coverage run -m pytest && coverage lcov
|
|
||||||
else
|
else
|
||||||
coverage run -m pytest && coverage report
|
coverage run -m pytest && coverage report
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue