From cd2ef10fa5262d559d744109228f79f5a06815a1 Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 8 Dec 2022 14:06:08 +0100 Subject: Add codecov and rename workflow jobs for consistency. --- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 4 +++- codecov.yml | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 codecov.yml 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/codecov.yml b/codecov.yml new file mode 100644 index 00000000..5745008d --- /dev/null +++ b/codecov.yml @@ -0,0 +1,7 @@ +coverage: + range: 50..100 + round: up + precision: 2 + +ignore: + - "tests" \ No newline at end of file -- cgit v1.3.1 From 5b14a065af3bf3c5c8f6a78b779fa9e97811d954 Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 8 Dec 2022 14:33:40 +0100 Subject: Add codecov badges. --- README.md | 6 ++++-- codecov.yml | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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 index 5745008d..5bf2bbe4 100644 --- a/codecov.yml +++ b/codecov.yml @@ -4,4 +4,5 @@ coverage: precision: 2 ignore: - - "tests" \ No newline at end of file + - "test/**/*.py" + - "setup.py" \ No newline at end of file -- cgit v1.3.1