File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 45
45
env :
46
46
SKIP_REAL : 1
47
47
run : |
48
- pytest -s -vvv tests/mock_vws/${{ matrix.ci_pattern }}
48
+ pytest -s -vvv --exitfirst --cov=src/ --cov=tests --cov-report=xml tests/mock_vws/${{ matrix.ci_pattern }}
49
+
50
+ - name : " Upload coverage to Codecov"
51
+
52
+ with :
53
+ fail_ci_if_error : true
Original file line number Diff line number Diff line change @@ -28,12 +28,9 @@ def fixture_custom_bridge_network() -> Iterator[Network]:
28
28
name = 'test-vws-bridge-' + uuid .uuid4 ().hex ,
29
29
driver = 'bridge' ,
30
30
)
31
- except docker .errors .NotFound : # pragma: no cover
31
+ except docker .errors .NotFound :
32
32
# On Windows the "bridge" network driver is not available and we use
33
33
# the "nat" driver instead.
34
- #
35
- # We do not track this coverage because the coverage tracked build is
36
- # on Linux.
37
34
network = client .networks .create (
38
35
name = 'test-vws-bridge-' + uuid .uuid4 ().hex ,
39
36
driver = 'nat' ,
@@ -73,9 +70,7 @@ def test_build_and_run(
73
70
dockerfile = str (base_dockerfile ),
74
71
tag = base_tag ,
75
72
)
76
- except docker .errors .BuildError as exc : # pragma: no cover
77
- # We do not track this coverage because the coverage tracked build is
78
- # on Linux.
73
+ except docker .errors .BuildError as exc :
79
74
assert 'no matching manifest for windows/amd64' in str (exc )
80
75
reason = 'We do not currently support using Windows containers.'
81
76
pytest .skip (reason )
You can’t perform that action at this time.
0 commit comments