{"id":13471487,"url":"https://github.com/deepsourcelabs/test-coverage-action","last_synced_at":"2025-03-26T13:31:06.866Z","repository":{"id":49187679,"uuid":"283791292","full_name":"deepsourcelabs/test-coverage-action","owner":"deepsourcelabs","description":"☂️ GitHub Action for DeepSource Test Coverage analyzer reporting.","archived":false,"fork":false,"pushed_at":"2024-05-23T06:25:52.000Z","size":5041,"stargazers_count":33,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T03:59:36.841Z","etag":null,"topics":["deepsource","reporting","test-coverage"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepsourcelabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-30T14:02:53.000Z","updated_at":"2025-02-20T01:35:26.000Z","dependencies_parsed_at":"2023-01-06T15:45:16.343Z","dependency_job_id":"e70d99c1-b6e7-4dba-8817-1da860af6f1a","html_url":"https://github.com/deepsourcelabs/test-coverage-action","commit_stats":{"total_commits":14,"total_committers":6,"mean_commits":"2.3333333333333335","dds":0.6428571428571428,"last_synced_commit":"45288ed6a125156cafba365c46b6ba6c63de9198"},"previous_names":["deepsourcelabs/test-coverage-action","deepsourcecorp/test-coverage-action"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsourcelabs%2Ftest-coverage-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsourcelabs%2Ftest-coverage-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsourcelabs%2Ftest-coverage-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsourcelabs%2Ftest-coverage-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepsourcelabs","download_url":"https://codeload.github.com/deepsourcelabs/test-coverage-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245662810,"owners_count":20652086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deepsource","reporting","test-coverage"],"created_at":"2024-07-31T16:00:45.741Z","updated_at":"2025-03-26T13:31:06.548Z","avatar_url":"https://github.com/deepsourcelabs.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cms.deepsource.io/logo-wordmark-dark.svg\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://docs.deepsource.com\"\u003eDocs\u003c/a\u003e |\n  \u003ca href=\"https://deepsource.com\"\u003eGet Started\u003c/a\u003e |\n  \u003ca href=\"https://discuss.deepsource.com/\"\u003eDiscuss\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  The Code Health Platform\n\u003c/p\u003e\n\n\u003c/p\u003e\n\n---\n\nGitHub Action that enables you to upload your test coverage data to DeepSource easily. You must have the [Test Coverage](https://docs.deepsource.com/docs/analyzers-test-coverage) analyzer enabled on your repository for reporting to work.\n\nIf you're not using DeepSource yet, [get started for free](https://deepsource.com/).\n\n## Usage\n\nThis Action assumes that the coverage file has already been generated after the tests have run. To integrate it in your workflow, define a step which refers to this Action in your `workflow.yml` file. We recommend that you use `@master` as the ref.\n\nEnsure that you have added the `DEEPSOURCE_DSN` secret in your GitHub repository. It is available under **Settings → Code Coverage** of the repository page on DeepSource.\n\n```yaml\nsteps:\n  - name: Report test coverage to DeepSource\n    uses: deepsourcelabs/test-coverage-action@master\n    with:\n      key: python\n      coverage-file: coverage.xml\n      dsn: ${{ secrets.DEEPSOURCE_DSN }}\n```\n\nThe possible inputs to this action are:\n\n* `key` (string, **required**): Programming language shortcode for which coverage is reported. e.g. `python`, `go`, `javascript`.\n  See [the docs](https://docs.deepsource.com/docs/analyzers-test-coverage#reporting-coverage-artifact-using-the-cli) for the current list of allowed values.\n* `coverage-file` (string, **required**): Path to the coverage data file. e. g. `coverage.xml`\n* `dsn` (string, **required**): DeepSource DSN of this repository.\n* `fail-ci-on-error` (boolean): Should the CI build fail if there is an error while uploading the report to DeepSource? Allowed values are: `true`, `false`. This is set to `false` by default.\n\n## License\n\nThis project is released under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepsourcelabs%2Ftest-coverage-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepsourcelabs%2Ftest-coverage-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepsourcelabs%2Ftest-coverage-action/lists"}