From 57915633255be3d5145c586f481fe4f75233b2a0 Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Tue, 10 Sep 2024 15:18:31 +0200 Subject: [PATCH] ci: switch to codecov cli on appveyor This change replaces the legacy codecov uploader on macos with a specific codecov-cli (the uploader's modern replacement) version that is known to support several CPUs. This does not solve the issue that coverage reports are not uploaded to codecov, but it fixes the issue that the CPU mismatch caused a non-zero exit code that would lead to a CI failure even when all tests passed. Fixes https://github.com/datalad/datalad-next/issues/756 --- .appveyor.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index eee26fb6..5c68fea8 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -118,7 +118,7 @@ environment: PY: 3.8 INSTALL_GITANNEX: git-annex DATALAD_LOCATIONS_SOCKETS: /Users/appveyor/DLTMP/sockets - CODECOV_BINARY: https://uploader.codecov.io/latest/macos/codecov + CODECOV_BINARY: https://cli.codecov.io/v0.7.4/macos/codecov DATALAD_TESTS_SSH: 1 # no docker on Mac, we log into self # 'test_publish_target_url' relies git-annex being installed on the @@ -333,7 +333,8 @@ for: - python -m coverage xml - "curl -Os $CODECOV_BINARY" - chmod +x codecov - - ./codecov + # the do-upload subcommand seems to work for the codecov-cli and legacy uploader + - ./codecov do-upload on_finish: # conditionally block the exit of a CI run for direct debugging