-
Notifications
You must be signed in to change notification settings - Fork 5
ci(coverage): Add Codecov integration and prettier update #481
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
bdedfba
Update test.yaml
vanessafsoares 96a2a36
chore(workflow): Update Node.js versions in test.yaml and format Code…
vanessafsoares 43583c0
chore(coverage): Add Codecov configuration and update Jest settings f…
vanessafsoares 3ad4828
fix(workflow): Remove trailing comma in Node.js version list in test.…
vanessafsoares a8b39bb
chore(coverage): Standardize quotes in Codecov configuration and stre…
vanessafsoares 6631b6a
chore(dependencies): Update Prettier to alpha version and add new dev…
vanessafsoares 9ac734d
chore(coverage): Update Codecov and Jest configurations to exclude ad…
vanessafsoares File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| codecov: | ||
| require_ci_to_pass: true | ||
| notify: | ||
| wait_for_ci: true | ||
|
|
||
| coverage: | ||
| precision: 2 | ||
| round: down | ||
| range: '70...100' | ||
|
|
||
| status: | ||
| project: | ||
| default: | ||
| target: auto | ||
| threshold: 1% | ||
| informational: false | ||
| patch: | ||
| default: | ||
| target: auto | ||
| threshold: 1% | ||
| informational: false | ||
|
|
||
| comment: | ||
| layout: 'reach,diff,flags,tree,files' | ||
| behavior: default | ||
| require_changes: false | ||
|
|
||
| ignore: | ||
| - 'tests/**/*' | ||
| - 'examples/**/*' | ||
| - '**/*.d.ts' | ||
| - 'dist/**/*' | ||
| # Large generated OpenAPI type files (no runtime logic) | ||
| - 'src/types/api.types.ts' | ||
| - 'src/types/openapi.types.ts' | ||
| - 'src/types/new-api.types.ts' | ||
| # Pure type definition files (no runtime logic) | ||
| - 'src/types/auth.types.ts' | ||
| - 'src/types/base.types.ts' | ||
| - 'src/types/dataset.types.ts' | ||
| - 'src/types/export.types.ts' | ||
| - 'src/types/index.ts' | ||
| - 'src/types/log-stream.types.ts' | ||
| - 'src/types/node.types.ts' | ||
| - 'src/types/prompt-template.types.ts' | ||
| - 'src/types/runs.types.ts' | ||
| - 'src/types/search.types.ts' | ||
| - 'src/types/shared.types.ts' | ||
| - 'src/types/streaming-adapter.types.ts' | ||
| - 'src/types/tag.types.ts' | ||
| - 'src/types/transaction.types.ts' | ||
| - 'src/types/logging/logger.types.ts' | ||
| - 'src/types/logging/session.types.ts' | ||
| - 'src/types/logging/trace.types.ts' | ||
| # Runtime logic files are NOT ignored (will be tracked by coverage): | ||
| # - src/types/routes.types.ts (Routes enum) | ||
| # - src/types/project.types.ts (ProjectTypes const) | ||
| # - src/types/models.types.ts (Models enum) | ||
| # - src/types/errors.types.ts (GalileoAPIError class) | ||
| # - src/types/metrics.types.ts (GalileoMetrics const) | ||
| # - src/types/message.types.ts (MessageRole const) | ||
| # - src/types/experiment.types.ts (DEFAULT_PROMPT_RUN_SETTINGS) | ||
| # - src/types/job.types.ts (enums and consts) | ||
| # - src/types/scorer.types.ts (enums) | ||
| # - src/types/document.types.ts (Document class) | ||
| # - src/types/legacy-step.types.ts (classes and enums) | ||
| # - src/types/logging/step.types.ts (runtime classes and consts) | ||
| # - src/types/logging/span.types.ts (runtime classes and enums) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,49 @@ | ||
| module.exports = { | ||
| preset: 'ts-jest', | ||
| testEnvironment: 'node', | ||
| moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'node'] | ||
| moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'node'], | ||
| collectCoverage: true, | ||
| coverageDirectory: 'coverage', | ||
| coverageReporters: ['text', 'lcov', 'json', 'html'], | ||
| collectCoverageFrom: [ | ||
| 'src/**/*.{ts,tsx}', | ||
| '!src/**/*.d.ts', | ||
| // Exclude large generated OpenAPI type files (no runtime logic) | ||
| '!src/types/api.types.ts', | ||
| '!src/types/openapi.types.ts', | ||
| '!src/types/new-api.types.ts', | ||
| // Exclude pure type definition files (no runtime logic) | ||
| '!src/types/auth.types.ts', | ||
| '!src/types/base.types.ts', | ||
| '!src/types/dataset.types.ts', | ||
| '!src/types/export.types.ts', | ||
| '!src/types/index.ts', | ||
| '!src/types/log-stream.types.ts', | ||
| '!src/types/node.types.ts', | ||
| '!src/types/prompt-template.types.ts', | ||
| '!src/types/runs.types.ts', | ||
| '!src/types/search.types.ts', | ||
| '!src/types/shared.types.ts', | ||
| '!src/types/streaming-adapter.types.ts', | ||
| '!src/types/tag.types.ts', | ||
| '!src/types/transaction.types.ts', | ||
| '!src/types/logging/logger.types.ts', | ||
| '!src/types/logging/session.types.ts', | ||
| '!src/types/logging/trace.types.ts' | ||
| // Keep runtime logic files for coverage: | ||
| // - src/types/routes.types.ts (Routes enum) | ||
| // - src/types/project.types.ts (ProjectTypes const) | ||
| // - src/types/models.types.ts (Models enum) | ||
| // - src/types/errors.types.ts (GalileoAPIError class, isGalileoAPIStandardErrorData function) | ||
| // - src/types/metrics.types.ts (GalileoMetrics const) | ||
| // - src/types/message.types.ts (MessageRole const) | ||
| // - src/types/experiment.types.ts (DEFAULT_PROMPT_RUN_SETTINGS const) | ||
| // - src/types/job.types.ts (enums and Scorers const) | ||
| // - src/types/scorer.types.ts (enums) | ||
| // - src/types/document.types.ts (Document class) | ||
| // - src/types/legacy-step.types.ts (classes and enums) | ||
| // - src/types/logging/step.types.ts (StepType const, Metrics class, BaseStep class) | ||
| // - src/types/logging/span.types.ts (enums and classes) | ||
| ], | ||
| coveragePathIgnorePatterns: ['/node_modules/', '/dist/', '/tests/'] | ||
| }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.