Files
concrete/script/actions_utils/coverage.sh
Arthur Meyre 8490f88227 chore: change coverage to have global infos
- have a small hack to dump pytest-cov report
2021-10-11 19:06:37 +02:00

13 lines
272 B
Bash
Executable File

#!/usr/bin/env bash
set -o pipefail
set +e
CURR_DIR=$(dirname "$0")
# Format diff-coverage.txt for PR comment
poetry run python "$CURR_DIR"/coverage_report_format.py \
global-coverage \
--global-coverage-json-file "$1" \
--global-coverage-output-file diff-coverage.txt