Skip to content

Commit b5fe3e3

Browse files
committed
fix(ci): include json-loader in coverage reports
1 parent b314d18 commit b5fe3e3

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ jobs:
145145
run: just json-loader
146146
env:
147147
PYTEST_XDIST_AUTO_NUM_WORKERS: auto
148+
- name: Upload coverage reports to Codecov
149+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
150+
with:
151+
files: .just/json-loader/coverage.xml
152+
flags: unittests
153+
token: ${{ secrets.CODECOV_TOKEN }}
148154

149155
test-tests:
150156
runs-on: [self-hosted-ghr, size-xl-x64]

Justfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,17 @@ json-loader *args:
163163
--output="tests/json_loader/fixtures" \
164164
--cov-config=pyproject.toml \
165165
--cov=ethereum \
166-
--cov-fail-under=80
166+
--cov-branch \
167+
--cov-report=term \
168+
--cov-fail-under=85
167169
uv run pytest \
168170
-m "not slow" \
169171
-n auto --maxprocesses 6 --dist=loadfile \
172+
--cov-config=pyproject.toml \
173+
--cov=ethereum \
174+
--cov-branch \
175+
--cov-report=term \
176+
--cov-report "xml:{{ output_dir }}/json-loader/coverage.xml" \
170177
--basetemp="{{ output_dir }}/json-loader/tmp" \
171178
"$@" \
172179
tests/json_loader

0 commit comments

Comments
 (0)