Skip to content

Commit c60c767

Browse files
TomAugspurgergaluhsahid
authored andcommitted
CI: Set SHA for codecov upload (pandas-dev#28067)
1 parent fa7cdd9 commit c60c767

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ci/run_tests.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ do
5151
sh -c "$PYTEST_CMD; ret=\$?; [ \$ret = 5 ] && exit 0 || exit \$ret"
5252

5353
if [[ "$COVERAGE" && $? == 0 ]]; then
54+
SHA=`git rev-parse HEAD`
5455
echo "uploading coverage for $TYPE tests"
55-
echo "bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME"
56-
bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME
56+
echo "bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME -C $SHA"
57+
bash <(curl -s https://codecov.io/bash) -Z -c -F $TYPE -f $COVERAGE_FNAME -C `git rev-parse HEAD`
5758
fi
5859
done

0 commit comments

Comments
 (0)