You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2023/04/14 17:08:32 UTC

[beam] 01/01: Replace deprecated codecov package with codecov uploader

This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch users/damccorm/codecov
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 1366324ce2ec0a67575c667f3f475a4d466fa6a6
Author: Danny McCormick <da...@google.com>
AuthorDate: Fri Apr 14 13:08:20 2023 -0400

    Replace deprecated codecov package with codecov uploader
---
 sdks/python/tox.ini | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini
index b45ac9e3c1e..f01d8ba64c2 100644
--- a/sdks/python/tox.ini
+++ b/sdks/python/tox.ini
@@ -98,14 +98,17 @@ commands =
   bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}"
 [testenv:py38-cloudcoverage]
 deps =
-  codecov
   pytest-cov==3.0.0
 passenv = GIT_* BUILD_* ghprb* CHANGE_ID BRANCH_NAME JENKINS_* CODECOV_*
 extras = test,gcp,interactive,dataframe,aws
 commands =
   -rm .coverage
   bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" "--cov-report=xml --cov=. --cov-append"
-  codecov -F python
+  
+  curl -Os https://uploader.codecov.io/v0.1.0_4653/linux/codecov
+  chmod +x codecov
+  ./codecov -F python
+  rm ./codecov
 
 [testenv:py37-lint]
 # Don't set TMPDIR to avoid "AF_UNIX path too long" errors in pylint.