diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index c49be71af1..dbdf0993b5 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -97,6 +97,7 @@ jobs: - '!.github/workflows/trigger-breaking-change-alert.yaml' - '!.gitignore' - '!.pre-commit-config.yaml' + - '!codecov.yml' - '!AGENTS.md' - '!CHANGELOG.md' - '!CONTRIBUTING.md' @@ -155,6 +156,7 @@ jobs: - '!.github/workflows/trigger-breaking-change-alert.yaml' - '!.gitignore' - '!.pre-commit-config.yaml' + - '!codecov.yml' - '!AGENTS.md' - '!CONTRIBUTING.md' - '!LICENSE' @@ -224,6 +226,7 @@ jobs: - '!.github/workflows/trigger-breaking-change-alert.yaml' - '!.gitignore' - '!.pre-commit-config.yaml' + - '!codecov.yml' - '!AGENTS.md' - '!CONTRIBUTING.md' - '!LICENSE' @@ -290,6 +293,7 @@ jobs: - '!.github/workflows/trigger-breaking-change-alert.yaml' - '!.gitignore' - '!.pre-commit-config.yaml' + - '!codecov.yml' - '!AGENTS.md' - '!CONTRIBUTING.md' - '!LICENSE' @@ -410,16 +414,11 @@ jobs: uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda with: - run_codecov: false build_type: pull-request script: ci/test_python.sh secrets: - script-env-secret-1-key: CUOPT_S3_URI - script-env-secret-1-value: ${{ secrets.CUOPT_S3_URI }} - script-env-secret-2-key: CUOPT_AWS_ACCESS_KEY_ID - script-env-secret-2-value: ${{ secrets.CUOPT_AWS_ACCESS_KEY_ID }} - script-env-secret-3-key: CUOPT_AWS_SECRET_ACCESS_KEY - script-env-secret-3-value: ${{ secrets.CUOPT_AWS_SECRET_ACCESS_KEY }} + script-env-secret-1-key: CODECOV_TOKEN + script-env-secret-1-value: ${{ secrets.CODECOV_TOKEN }} docs-build: needs: [conda-python-build, changed-files] permissions: diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..b034ba32d8 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,12 @@ +# Configuration File for CodeCov +comment: false +coverage: + status: + project: off + patch: + default: + target: auto + threshold: 5% + informational: true +github_checks: + annotations: true diff --git a/python/.coveragerc b/python/.coveragerc index a4d048db8a..714b2eac3f 100644 --- a/python/.coveragerc +++ b/python/.coveragerc @@ -4,3 +4,5 @@ include = cuopt/cuopt/* cuopt_server/cuopt_server/* omit = cuopt_server/cuopt_server/tests/* cuopt/cuopt/tests/* +disable_warnings = module-not-measured + no-data-collected