diff --git a/.circleci/config.yml b/.circleci/config.yml
index 3be50071c..b5f8ffd36 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -5,13 +5,13 @@ version: 2.1
# See: https://circleci.com/docs/2.0/orb-intro/
orbs:
- coveralls: coveralls/coveralls@1.0.6
+ coveralls: coveralls/coveralls@2.2.1
jobs:
build-and-test:
# Change the version below to your required version of python
docker:
- - image: cimg/python:3.10.9-node
+ - image: cimg/python:3.11.5-node
user: root
steps:
- checkout
@@ -40,7 +40,7 @@ jobs:
path: /tmp/test-results/coverage.lcov
destination: coverage
- coveralls/upload:
- path_to_lcov: /tmp/test-results/coverage.lcov
+ coverage_file: /tmp/test-results/coverage.lcov
workflows:
tests:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index afcebbef2..203f4e466 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -25,3 +25,7 @@ jobs:
uses: collective/tox-action@main
with:
python-version: ${{ matrix.python-version }}
+ - name: Upload coverage report to CodeCov ☂
+ uses: codecov/codecov-action@v3
+ env:
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
diff --git a/README.md b/README.md
index 962db34de..581d6eb82 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,7 @@
[![Coverage Status](https://coveralls.io/repos/github/Pale-Blue-Dot-97/Minerva/badge.svg?t=ZycdOW)](https://coveralls.io/github/Pale-Blue-Dot-97/Minerva)
[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Pale-Blue-Dot-97/Minerva/main.svg)](https://results.pre-commit.ci/latest/github/Pale-Blue-Dot-97/Minerva/main)
+[![codecov](https://codecov.io/gh/Pale-Blue-Dot-97/Minerva/graph/badge.svg?token=8TUR8A8XZ5)](https://codecov.io/gh/Pale-Blue-Dot-97/Minerva)
diff --git a/docs/docs_readme.md b/docs/docs_readme.md
index 962db34de..581d6eb82 100644
--- a/docs/docs_readme.md
+++ b/docs/docs_readme.md
@@ -13,6 +13,7 @@
[![Coverage Status](https://coveralls.io/repos/github/Pale-Blue-Dot-97/Minerva/badge.svg?t=ZycdOW)](https://coveralls.io/github/Pale-Blue-Dot-97/Minerva)
[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Pale-Blue-Dot-97/Minerva/main.svg)](https://results.pre-commit.ci/latest/github/Pale-Blue-Dot-97/Minerva/main)
+[![codecov](https://codecov.io/gh/Pale-Blue-Dot-97/Minerva/graph/badge.svg?token=8TUR8A8XZ5)](https://codecov.io/gh/Pale-Blue-Dot-97/Minerva)
diff --git a/tox.ini b/tox.ini
index 99e64abc0..400805b2d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,13 +15,13 @@ skip_install = true
setenv = PYTHONPATH = {toxinidir}
deps = -r{toxinidir}/requirements/requirements_dev.txt
commands =
- pytest --basetemp={envtmpdir}
+ pytest --basetemp={envtmpdir} --cov-report=xml:coverage.xml
[testenv:minerva-311]
basepython = python3.11
deps = -r{toxinidir}/requirements/requirements_dev.txt
commands =
- pytest --basetemp={envtmpdir}
+ pytest --basetemp={envtmpdir} --cov-report=xml:coverage.xml
mypy minerva
flake8 minerva tests