CI: Fix codecov upload
This commit is contained in:
parent
a2496e041e
commit
5b931faf2b
|
|
@ -98,10 +98,4 @@ jobs:
|
||||||
run: ./ci/ci-script.bash
|
run: ./ci/ci-script.bash
|
||||||
|
|
||||||
- name: Upload coverage data to Codecov
|
- name: Upload coverage data to Codecov
|
||||||
uses: codecov/codecov-action@v4
|
run: ( cd nodist/obj_dir/upload && ../../../ci/codecov -v do-upload --fail-on-error -f ../../../nodist/obj_dir/coverage/app_total.info )
|
||||||
with:
|
|
||||||
fail_ci_if_error: true
|
|
||||||
disable_search: true
|
|
||||||
files: ${{ github.workspace }}/nodist/obj_dir/coverage/app_total.info
|
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
verbose: true
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -180,7 +180,13 @@ def test():
|
||||||
if Args.stage_enabled[18]:
|
if Args.stage_enabled[18]:
|
||||||
ci_fold_start("upload")
|
ci_fold_start("upload")
|
||||||
print("Stage 18: Upload")
|
print("Stage 18: Upload")
|
||||||
cmd = "codecov -v do-upload --disable-search -Z -f " + cc_dir + "/app_total.info"
|
# curl -Os https://cli.codecov.io/latest/linux/codecov ; sudo chmod +x codecov
|
||||||
|
# --disable-search does not seem to work, so we use a temp directory
|
||||||
|
upload_dir = "nodist/obj_dir/upload"
|
||||||
|
os.makedirs(upload_dir, exist_ok=True)
|
||||||
|
cmd = ("( cd " + upload_dir +
|
||||||
|
" && ../../../ci/codecov -v do-upload --fail-on-error" +
|
||||||
|
" -f ../../../" + cc_dir + "/app_total.info )")
|
||||||
print("print: Not running: export CODECOV_TOKEN=<hidden>")
|
print("print: Not running: export CODECOV_TOKEN=<hidden>")
|
||||||
print("print: Not running: " + cmd)
|
print("print: Not running: " + cmd)
|
||||||
ci_fold_end()
|
ci_fold_end()
|
||||||
|
|
@ -364,12 +370,13 @@ parser.add_argument('--scenarios',
|
||||||
help='pass test scenarios onto driver.pl test harness')
|
help='pass test scenarios onto driver.pl test harness')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--stages',
|
'--stages',
|
||||||
|
'--stage',
|
||||||
action='store',
|
action='store',
|
||||||
help='runs a specific stage or range of stages (see the script)')
|
help='runs a specific stage or range of stages (see the script)')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
'--tests',
|
||||||
'--test',
|
'--test',
|
||||||
action='append',
|
action='append',
|
||||||
dest='tests',
|
|
||||||
default=[],
|
default=[],
|
||||||
help=
|
help=
|
||||||
'Instead of normal regressions, run the specified test(s), may be used multiple times'
|
'Instead of normal regressions, run the specified test(s), may be used multiple times'
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ our @Exempt_Files_List = qw(
|
||||||
README.rst
|
README.rst
|
||||||
ci/ci-win-compile.ps1
|
ci/ci-win-compile.ps1
|
||||||
ci/ci-win-test.ps1
|
ci/ci-win-test.ps1
|
||||||
ci/coverage-upload.sh
|
ci/codecov
|
||||||
docs/CONTRIBUTING.rst
|
docs/CONTRIBUTING.rst
|
||||||
docs/CONTRIBUTORS
|
docs/CONTRIBUTORS
|
||||||
docs/README.rst
|
docs/README.rst
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue