Skip to content
Snippets Groups Projects
Commit 2e429bec authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix coverage

parent f539431e
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,8 @@ jobs: ...@@ -18,7 +18,8 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install -y python3-setuptools python3-yaml sudo apt-get install -y python3-setuptools python3-yaml
pip install -U pip setuptools wheel disttools packaging 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 - name: Before the coverage
run: | run: |
wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
...@@ -30,8 +31,9 @@ jobs: ...@@ -30,8 +31,9 @@ jobs:
run: pytest -n 8 -vv --cov=satella run: pytest -n 8 -vv --cov=satella
- name: Submit the code coverage - name: Submit the code coverage
run: | run: |
./test-reporter-latest-linux-amd64 format-coverage -t coverage.py
./test-reporter-latest-linux-amd64 after-build ./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: env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
build-project: build-project:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment