From 2e429bec0a59c6942c10421280962576cdb492e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Thu, 7 Mar 2024 07:35:22 +0100 Subject: [PATCH] fix coverage --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7e46b8b..b269a79b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,8 @@ jobs: sudo apt-get update sudo apt-get install -y python3-setuptools python3-yaml pip install -U pip setuptools wheel disttools packaging - pip install -U -e .[test,dev] + pip install -e .[test,dev] + pip install -U pytest-xdist pytest-cov pytest pytest-forked pluggy py opentracing - name: Before the coverage run: | wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 @@ -30,8 +31,9 @@ jobs: run: pytest -n 8 -vv --cov=satella - name: Submit the code coverage run: | - ./test-reporter-latest-linux-amd64 format-coverage -t coverage.py ./test-reporter-latest-linux-amd64 after-build + ./test-reporter-latest-linux-amd64 format-coverage -t coverage.py -o codeclimate.json + ./test-reporter-latest-linux-amd64 upload-coverage -i codeclimate.json env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} build-project: -- GitLab