Skip to content

Commit 63a0cde

Browse files
committed
Try fix codecov
1 parent 66a9f55 commit 63a0cde

File tree

5 files changed

+26
-3
lines changed

5 files changed

+26
-3
lines changed

.coveragerc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
[run]
2+
branch = True
23
source = pytest_image_diff
4+
5+
[report]
6+
exclude_lines =
7+
if self.debug:
8+
pragma: no cover
9+
raise NotImplementedError
10+
if __name__ == .__main__.:
11+
omit =
12+
tests/*
13+
tests.py

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ jobs:
4444
- name: Install dependencies
4545
run: |
4646
python -m pip install --upgrade pip
47-
pip install tox python-coveralls codecov
47+
pip install tox codecov
4848
- name: Run tests
4949
run: tox
50-
- uses: codecov/codecov-action@v1
50+
- name: Upload coverage to codecov
51+
uses: codecov/codecov-action@v1
5152
with:
5253
env_vars: OS,PYTHON,TOXENV
5354

Binary file not shown.
Binary file not shown.

tests/conftest.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
# pytest_plugins = ['pytest_image_diff.plugin']
1+
import os
2+
3+
import pytest
4+
from _pytest.fixtures import FixtureRequest
5+
6+
7+
@pytest.fixture(scope="session")
8+
def image_diff_root(request: FixtureRequest) -> str:
9+
"""
10+
Root path for storing diff images. By default - `request.config.rootdir`
11+
"""
12+
return os.path.join(request.config.rootdir, "tests")

0 commit comments

Comments
 (0)