Skip to content
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
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,23 @@ jobs:

- name: Run tests
run: npm test
env:
VSC_JUPYTER_INSTRUMENT_CODE_FOR_COVERAGE: true

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/lcov.info
fail_ci_if_error: true

- name: Upload test results to Codecov
if: '!cancelled()'
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: test-report.xml
fail_ci_if_error: true

- name: Check dependencies
run: npm run checkDependencies
Expand Down
2 changes: 1 addition & 1 deletion src/test/coverage.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function setupCoverage() {
return;
}
const htmlReport = process.env.VSC_JUPYTER_INSTRUMENT_CODE_FOR_COVERAGE_HTML ? ['html'] : [];
const reports = htmlReport.concat(['text', 'text-summary']);
const reports = htmlReport.concat(['text', 'text-summary', 'lcov']);
const NYC = require('nyc');
const nyc = new NYC({
cwd: path.join(EXTENSION_ROOT_DIR_FOR_TESTS),
Expand Down