aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJán Jančár2022-12-08 14:43:03 +0100
committerGitHub2022-12-08 14:43:03 +0100
commit19338dc9fd9ab257c36cfa277994abe202e97de2 (patch)
tree45d0a822a67c73fac7f66401897065261687f038
parent5a5c4cdbf7c7b9aedbd4e73b0bf6c88e09f2fd86 (diff)
parent5b14a065af3bf3c5c8f6a78b779fa9e97811d954 (diff)
downloadsec-certs-19338dc9fd9ab257c36cfa277994abe202e97de2.tar.gz
sec-certs-19338dc9fd9ab257c36cfa277994abe202e97de2.tar.zst
sec-certs-19338dc9fd9ab257c36cfa277994abe202e97de2.zip
Merge pull request #292 from crocs-muni/feat/codecov
Add codecov
-rw-r--r--.github/workflows/lint.yml2
-rw-r--r--.github/workflows/tests.yml4
-rw-r--r--README.md6
-rw-r--r--codecov.yml8
4 files changed, 16 insertions, 4 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index d62b62b4..95de7f7b 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -3,7 +3,7 @@ on:
push:
workflow_dispatch:
jobs:
- run-mypy:
+ mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index d8f5d5f5..255b6cac 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -6,7 +6,7 @@ env:
DEBIAN_FRONTEND: noninteractive
jobs:
- run-test:
+ test:
runs-on: ubuntu-22.04
steps:
- name: Install Poppler
@@ -22,3 +22,5 @@ jobs:
pip install -r requirements/test_requirements.txt
- name: Run tests
run: pytest --cov=sec_certs tests
+ - name: Code coverage upload
+ uses: codecov/codecov-action@v3
diff --git a/README.md b/README.md
index 1631422a..c0a7ab48 100644
--- a/README.md
+++ b/README.md
@@ -5,11 +5,13 @@
A tool for data scraping and analysis of security certificates from Common Criteria and FIPS 140-2/3 frameworks. This project is developed by the [Centre for Research On Cryptography and Security](https://crocs.fi.muni.cz) at Masaryk University, Czech Republic.
[![Website](https://img.shields.io/website?down_color=red&down_message=offline&style=flat-square&up_color=SpringGreen&up_message=online&url=https%3A%2F%2Fseccerts.org)](https://seccerts.org)
-[![Website](https://img.shields.io/website?down_color=red&down_message=offline&style=flat-square&up_color=SpringGreen&up_message=online&url=https%3A%2F%2Fseccerts.org/docs/index.html)](https://seccerts.org/docs/index.html)
+[![Website](https://img.shields.io/website?label=docs&down_color=red&down_message=offline&style=flat-square&up_color=SpringGreen&up_message=online&url=https%3A%2F%2Fseccerts.org/docs/index.html)](https://seccerts.org/docs/index.html)
[![PyPI](https://img.shields.io/pypi/v/sec-certs?style=flat-square)](https://pypi.org/project/sec-certs/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sec-certs?label=Python%20versions&style=flat-square)](https://pypi.org/project/sec-certs/)
-[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/crocs-muni/sec-certs/tests?style=flat-square)](https://github.com/crocs-muni/sec-certs/actions/workflows/tests.yml)
+
+[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/crocs-muni/sec-certs/tests?label=tests&style=flat-square)](https://github.com/crocs-muni/sec-certs/actions/workflows/tests.yml)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/crocs-muni/sec-certs/Docker%20Image%20CI?label=Docker%20build&style=flat-square)](https://hub.docker.com/repository/docker/seccerts/sec-certs)
+[![Codecov](https://img.shields.io/codecov/c/github/crocs-muni/sec-certs?style=flat-square)](https://app.codecov.io/gh/crocs-muni/sec-certs)
## Installation
diff --git a/codecov.yml b/codecov.yml
new file mode 100644
index 00000000..5bf2bbe4
--- /dev/null
+++ b/codecov.yml
@@ -0,0 +1,8 @@
+coverage:
+ range: 50..100
+ round: up
+ precision: 2
+
+ignore:
+ - "test/**/*.py"
+ - "setup.py" \ No newline at end of file