From 2a089d83f16526f82f98f35bbb3d7b687ecee735 Mon Sep 17 00:00:00 2001 From: CircleCI Date: Fri, 29 Jan 2021 10:38:19 -0500 Subject: [PATCH] allow coverage drop --- .circleci/config.yml | 6 +++--- .codecov.yml | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 273f7cd0..27c209a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -292,7 +292,7 @@ jobs: name: run tests command: | . venv/bin/activate - python run_tests.py + $PYTHON_EXE run_tests.py # Upload to codecov.io (requires a CODECOV_TOKEN environ or github+circleci integration) codecov - store_artifacts: @@ -331,7 +331,7 @@ jobs: name: run tests command: | . venv/bin/activate - python run_tests.py + $PYTHON_EXE run_tests.py # Upload to codecov.io (requires a CODECOV_TOKEN environ or github+circleci integration) codecov - store_artifacts: @@ -404,7 +404,7 @@ jobs: # Execute the publish script for real this time MB_PYTHON_TAG=$MB_PYTHON_TAG DO_GPG=True GPG_KEYID=$GPG_KEYID TWINE_PASSWORD=$TWINE_PASSWORD TWINE_USERNAME=$TWINE_USERNAME GPG_EXECUTABLE=$GPG_EXECUTABLE CURRENT_BRANCH=release DEPLOY_BRANCH=release DO_UPLOAD=True DO_TAG=False ./publish.sh # Have the server git-tag the release and push the tags - VERSION=$(python -c "import setup; print(setup.VERSION)") + VERSION=$($PYTHON_EXE -c "import setup; print(setup.VERSION)") # do sed twice to handle the case of https clone with and without a read token URL_HOST=$(git remote get-url origin | sed -e 's|https\?://.*@||g' | sed -e 's|https\?://||g') echo "URL_HOST = $URL_HOST" diff --git a/.codecov.yml b/.codecov.yml index d96e9a2e..6e790657 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -8,10 +8,14 @@ coverage: range: "70...100" status: - project: yes + project: + default: + threshold: 10% patch: yes changes: no + + parsers: gcov: branch_detection: