Skip to content

Commit

Permalink
Merge pull request #69 from tlambert03/cov
Browse files Browse the repository at this point in the history
test: enable codecov
  • Loading branch information
cmalinmayor authored Nov 1, 2023
2 parents ed2b7b1 + 681fb93 commit d3560d1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 17 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# check-manifest:
# runs-on: ubuntu-latest
Expand All @@ -22,7 +26,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ["3.8", "3.9", "3.10", "3.11"]
platform: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand All @@ -35,17 +39,16 @@ jobs:
cache-dependency-path: "pyproject.toml"
cache: "pip"

# if running a cron job, we add the --pre flag to test against pre-releases
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -e .[test]
- name: Test
run: pytest --color=yes #--cov --cov-report=xml --cov-report=term-missing
run: pytest --color=yes --cov --cov-report=xml --cov-report=term-missing

# - name: Coverage
# uses: codecov/codecov-action@v3
- name: Coverage
uses: codecov/codecov-action@v3

benchmark:
name: Benchmark
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![CI](https://github.com/Janelia-Trackathon-2023/traccuracy/actions/workflows/ci.yml/badge.svg)](https://github.com/Janelia-Trackathon-2023/traccuracy/actions/workflows/ci.yml)
[![Benchmarking](https://github.com/Janelia-Trackathon-2023/traccuracy/actions/workflows/benchmark-report.yml/badge.svg)](https://janelia-trackathon-2023.github.io/traccuracy/dev/bench/)
[![Documentation Status](https://readthedocs.org/projects/traccuracy/badge/?version=latest)](https://traccuracy.readthedocs.io/en/latest/?badge=latest)
[![codecov](https://codecov.io/gh/Janelia-Trackathon-2023/traccuracy/branch/main/graph/badge.svg)](https://codecov.io/gh/Janelia-Trackathon-2023/traccuracy)


`traccuracy` provides a suite of benchmarking functions that can be used to evaluate cell
Expand Down
23 changes: 12 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,18 @@ pretty = true


# https://coverage.readthedocs.io/en/6.4/config.html
# [tool.coverage.report]
# exclude_lines = [
# "pragma: no cover",
# "if TYPE_CHECKING:",
# "@overload",
# "except ImportError",
# "\\.\\.\\.",
# "raise NotImplementedError()",
# ]
# [tool.coverage.run]
# source = ["src"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"@overload",
"except ImportError",
"\\.\\.\\.",
"raise NotImplementedError()",
"pass",
]
[tool.coverage.run]
source = ["traccuracy"]

# https://github.com/mgedmin/check-manifest#configuration
# [tool.check-manifest]
Expand Down
2 changes: 1 addition & 1 deletion src/traccuracy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

try:
__version__ = version("traccuracy")
except PackageNotFoundError:
except PackageNotFoundError: # pragma: no cover
__version__ = "uninstalled"

from ._run_metrics import run_metrics
Expand Down

0 comments on commit d3560d1

Please sign in to comment.