Skip to content

Commit

Permalink
Merge pull request #257 from ajhynes7/upload_to_codecov
Browse files Browse the repository at this point in the history
Upload coverage to codecov
  • Loading branch information
ajhynes7 committed Mar 7, 2021
2 parents 7891d12 + 84d9f36 commit 22eb4be
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[run]
source =
src/
omit =
*/plotting.py

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/main.yaml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ jobs:

- name: Run tox
run: tox

- name: Upload coverage report to codecov
uses: codecov/codecov-action@v1.2.1
with:
fail_ci_if_error: true
verbose: true
gcov_prefix: ${{ env.GITHUB_WORKSPACE }}
6 changes: 3 additions & 3 deletions tests/unit/objects/test_plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import pytest

from skspatial._functions import _allclose
from skspatial.objects.line import Line
from skspatial.objects.plane import Plane
from skspatial.objects.points import Points
from skspatial.objects import Line
from skspatial.objects import Plane
from skspatial.objects import Points


@pytest.mark.parametrize(
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/objects/test_sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import numpy as np
import pytest

from skspatial.objects.line import Line
from skspatial.objects.points import Points
from skspatial.objects.sphere import Sphere
from skspatial.objects import Line
from skspatial.objects import Points
from skspatial.objects import Sphere

POINT_MUST_BE_3D = "The point must be 3D."
RADIUS_MUST_BE_POSITIVE = "The radius must be positive."
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ deps =
-r requirements/base_test.txt
-r requirements/unit.txt
commands =
pytest tests/unit/ --cov=skspatial --cov-report html
pytest tests/unit/ --cov=skspatial --cov-report=xml

[testenv:property]
deps =
Expand Down

0 comments on commit 22eb4be

Please sign in to comment.