enable code coverage in CI (#259)

* enable codecoverage in CI

* code cov settings
pull/257/head^2
Sagar Paul 2023-05-11 16:11:33 +05:30 committed by GitHub
parent b7ed0a2dd6
commit c2af5541ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

15
.github/workflows/codecoverage.yml vendored Normal file
View File

@ -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

10
codecov.yml Normal file
View File

@ -0,0 +1,10 @@
---
codecov:
require_ci_to_pass: true
comment: false
coverage:
status:
patch: false
project:
default:
threshold: 0.3%