summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroverflow <63404819+roverflow@users.noreply.github.com>2023-03-29 00:55:25 +0530
committerGitHub <noreply@github.com>2023-03-28 19:25:25 +0000
commit5d50d94d9f1ef6da5dddc431bf159865d9b81ed5 (patch)
tree66202172e940c9941fd2c05fb26f1ddfe26793ec
parent5541214d04d136cb4be55d2dc3aecbeea25793a4 (diff)
downloadvyos.vyos-5d50d94d9f1ef6da5dddc431bf159865d9b81ed5.tar.gz
vyos.vyos-5d50d94d9f1ef6da5dddc431bf159865d9b81ed5.zip
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 <this.is@katherineca.se>
-rw-r--r--.github/workflows/codecoverage.yml15
-rw-r--r--README.md2
-rw-r--r--changelogs/fragments/ci_codecov.yml3
-rw-r--r--codecov.yml10
-rw-r--r--galaxy.yml2
5 files changed, 30 insertions, 2 deletions
diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml
new file mode 100644
index 0000000..b425edc
--- /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 3794790..ef670fb 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://img.shields.io/codecov/c/github/ansible-collections/vyos)](https://codecov.io/gh/ansible-collections/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 0000000..ea17f51
--- /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 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%
diff --git a/galaxy.yml b/galaxy.yml
index 4c65ff1..eef5e1f 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