Skip to content

Commit

Permalink
Merge pull request #250 from Pale-Blue-Dot-97/beta
Browse files Browse the repository at this point in the history
Add CodeCov Support to main
  • Loading branch information
Pale-Blue-Dot-97 authored Sep 12, 2023
2 parents 782fbaa + 1108b75 commit 8ab77fe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!-- PROJECT LOGO -->
<br />
Expand Down
1 change: 1 addition & 0 deletions docs/docs_readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!-- PROJECT LOGO -->
<br />
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8ab77fe

Please sign in to comment.