From 5d50d94d9f1ef6da5dddc431bf159865d9b81ed5 Mon Sep 17 00:00:00 2001 From: roverflow <63404819+roverflow@users.noreply.github.com> Date: Wed, 29 Mar 2023 00:55:25 +0530 Subject: added codecov via gha (#301) * added codecov via gha * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kate Case --- .github/workflows/codecoverage.yml | 15 +++++++++++++++ README.md | 2 +- changelogs/fragments/ci_codecov.yml | 3 +++ codecov.yml | 10 ++++++++++ galaxy.yml | 2 +- 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/codecoverage.yml create mode 100644 changelogs/fragments/ci_codecov.yml create mode 100644 codecov.yml diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml new file mode 100644 index 00000000..b425edcc --- /dev/null +++ b/.github/workflows/codecoverage.yml @@ -0,0 +1,15 @@ +--- +name: Code Coverage + +on: # yamllint disable-line rule:truthy + 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/README.md b/README.md index 37947907..ef670fb3 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # VyOS Collection [![CI](https://zuul-ci.org/gated.svg)](https://dashboard.zuul.ansible.com/t/ansible/project/github.com/ansible-collections/vyos.vyos) - +[![Codecov](https://codecov.io/gh/ansible-collections/vyos.vyos/branch/main/graph/badge.svg)](https://codecov.io/gh/ansible-collections/vyos.vyos) The Ansible VyOS collection includes a variety of Ansible content to help automate the management of VyOS network appliances. This collection has been tested against VyOS 1.1.8 (helium). diff --git a/changelogs/fragments/ci_codecov.yml b/changelogs/fragments/ci_codecov.yml new file mode 100644 index 00000000..ea17f51a --- /dev/null +++ b/changelogs/fragments/ci_codecov.yml @@ -0,0 +1,3 @@ +--- +trivial: + - added codecov to the CI pipeline diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..816cb440 --- /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% diff --git a/galaxy.yml b/galaxy.yml index 4c65ff15..eef5e1fc 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -11,4 +11,4 @@ readme: README.md repository: https://github.com/ansible-collections/vyos.vyos issues: https://github.com/ansible-collections/vyos.vyos/issues tags: [vyos, networking] -version: 4.0.1 +version: 4.0.2-dev -- cgit v1.2.3