From c2af5541ade431689afc80a4d5b4c754e24af135 Mon Sep 17 00:00:00 2001 From: Sagar Paul Date: Thu, 11 May 2023 16:11:33 +0530 Subject: [PATCH] enable code coverage in CI (#259) * enable codecoverage in CI * code cov settings --- .github/workflows/codecoverage.yml | 15 +++++++++++++++ codecov.yml | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/codecoverage.yml create mode 100644 codecov.yml diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml new file mode 100644 index 0000000..3ed9832 --- /dev/null +++ b/.github/workflows/codecoverage.yml @@ -0,0 +1,15 @@ +--- +name: Code Coverage + +on: + push: + pull_request: + branches: [ main ] + +jobs: + codecoverage: + uses: ansible-network/github_actions/.github/workflows/coverage_network_devices.yml@main + with: + collection_pre_install: >- + git+https://github.com/ansible-collections/ansible.utils.git + git+https://github.com/ansible-collections/ansible.netcommon.git diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..816cb44 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,10 @@ +--- +codecov: + require_ci_to_pass: true +comment: false +coverage: + status: + patch: false + project: + default: + threshold: 0.3%