Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add code coverage for JS #600

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ jobs:
run: npm ci
- name: Run tests
run: npm run unit
- name: Upload coverage to codecov
if: >-
${{
! github.event.schedule &&
github.repository_owner == 'pytest-dev'
}}
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
files: ./cobertura-coverage.xml
flags: js_tests
name: ubuntu-latest-node-16
verbose: true

test_unit:
name: ${{ matrix.os }} - ${{ matrix.python-version }}
Expand Down Expand Up @@ -99,8 +112,8 @@ jobs:
with:
fail_ci_if_error: true
files: ./coverage.xml
flags: tests
name: ${{ matrix.os }}-${{ matrix.python-version }}
flags: py_unit_tests
name: ${{ matrix.os }}-python-${{ matrix.python-version }}
verbose: true

test_integration:
Expand Down Expand Up @@ -161,7 +174,6 @@ jobs:
if: ${{ matrix.tox-env }}
run: tox -e ${{ matrix.tox-env }} -- testing/test_integration.py

# TODO: https://github.com/pytest-dev/pytest-html/issues/481
- name: Upload coverage to codecov
if: >-
${{
Expand All @@ -173,6 +185,6 @@ jobs:
with:
fail_ci_if_error: true
files: ./coverage.xml
flags: tests
name: ${{ matrix.tox-env }}
flags: py_integration_tests
name: ubuntu-latest-${{ matrix.python-version }}
verbose: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dist
# Codecov
.coverage
coverage.xml
cobertura-coverage.xml

# IDE Specific files/folders
## Pycharm IDE - Jetbrains
Expand Down Expand Up @@ -53,3 +54,5 @@ docs/_build/

*.html
assets/

.nyc_output
5 changes: 5 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"report-dir": ".",
"reporter": ["cobertura"],
"exclude": ["testing/**"]
}
Loading