Skip to content

Commit 3f701a6

Browse files
committed
Debug CI tests
1 parent bfc200a commit 3f701a6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/python-app.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
- name: Unit testing
4242
run: |
4343
coverage run -m unittest discover src/test_pownet
44+
echo "--------------------------------------------------" # For clarity in logs
45+
echo "DEBUG: Coverage text report from CI environment:"
46+
coverage report -m # <<< THIS IS THE CRITICAL OUTPUT NEEDED
47+
echo "--------------------------------------------------"
4448
coverage json
4549
COVERAGE_PERCENT=$(python -c "import json; print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
4650
echo "Total Coverage: $COVERAGE_PERCENT%"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pownet = ["database/*.csv"]
1010

1111
[tool.coverage.run]
1212
disable_warnings = ["no-data-collected"]
13-
source = ["src/pownet"]
13+
source = ["pownet"]
1414

1515
[project]
1616
name = "pownet"

src/pownet/reservoir/solve_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def solve_release_from_target_storage(
130130
- release_vars[day]
131131
- max_storage
132132
),
133-
name=f"c_define_spill_bar[day]",
133+
name=f"c_define_spill_bar[{day}]",
134134
)
135135

136136
# The storage at the start day is the initial storage

0 commit comments

Comments
 (0)