You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add codecov integration with test results upload (#13)
* feat: add codecov integration with test results upload
- Add .codecov.yml configuration with project and patch coverage checks (0.05% threshold)
- Configure jest to output test results in JUnit XML format using jest-junit reporter
- Update pytest to output coverage in XML format and test results in JUnit XML format
- Add codecov/codecov-action@v5 step to upload coverage from both jest (lcov) and pytest (xml)
- Add codecov/test-results-action@v1 step to upload test results from both test suites
- Set fail_ci_if_error: false for coverage upload to prevent blocking CI if codecov has issues
- Use if: '!cancelled()' for test results upload to ensure results are uploaded even if tests fail
Follows the same codecov configuration pattern as deepnote-internal and deepnote-toolkit repos.
Note: CODECOV_TOKEN secret needs to be configured in repository settings for codecov uploads to work.
* fix: address codecov configuration issues
- Create coverage directory before pytest runs to ensure junit xml output succeeds
- Fix codecov upload file paths (coverage.xml and coverage/lcov.info)
- Configure jest-junit to output to coverage/junit.xml explicitly
- Set coverageDirectory to ./coverage for consistency
Addresses CodeRabbit review comments.
* ci: fail job on upload failure
* fix: set test results upload to fail CI on error
Add fail_ci_if_error: true to test results upload step to ensure CI fails when codecov upload fails, matching the coverage upload configuration.
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
0 commit comments