mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 12:32:38 +01:00
fix coverage workflow
This commit is contained in:
parent
6cd1553070
commit
6d3d3b5fca
2
.github/workflows/coverage.yaml
vendored
2
.github/workflows/coverage.yaml
vendored
@ -10,4 +10,4 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: ./coverage.py --fail-matched-undeleted --fail-unincluded
|
- run: ./coverage.py --fail-matched-undeleted --fail-unincluded --skip-sizes
|
||||||
|
@ -80,11 +80,13 @@ if __name__ == "__main__":
|
|||||||
print("--fail-unincluded exit with error code 2 if unincluded assembly files exist")
|
print("--fail-unincluded exit with error code 2 if unincluded assembly files exist")
|
||||||
print("--delete-matched delete matched function(s) from asm/nonmatchings/ without asking")
|
print("--delete-matched delete matched function(s) from asm/nonmatchings/ without asking")
|
||||||
print("--delete-unincluded delete unincluded, unmatched assembly files")
|
print("--delete-unincluded delete unincluded, unmatched assembly files")
|
||||||
|
print("--skip-sizes don't attempt to read build/papermario.map to determine sizes")
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
total = len(matched) + len(non_matched)
|
total = len(matched) + len(non_matched)
|
||||||
print(f"{len(matched)}+{len(partial_matched)} / {total} functions ({(len(matched) / total) * 100:.2f}%)")
|
print(f"{len(matched)}+{len(partial_matched)} / {total} functions ({(len(matched) / total) * 100:.2f}%)")
|
||||||
|
|
||||||
|
if not "--skip-sizes":
|
||||||
function_sizes = parse_map_file()
|
function_sizes = parse_map_file()
|
||||||
size_matched = sum(function_sizes.get(f, 0) for f in matched)
|
size_matched = sum(function_sizes.get(f, 0) for f in matched)
|
||||||
size_partial_matched = sum(function_sizes.get(f, 0) for f in partial_matched)
|
size_partial_matched = sum(function_sizes.get(f, 0) for f in partial_matched)
|
||||||
|
Loading…
Reference in New Issue
Block a user