Skip to content

Commit

Permalink
Update pytest.yml
Browse files Browse the repository at this point in the history
Signed-off-by: KonanAI <[email protected]>
  • Loading branch information
konan-ai authored Jul 15, 2023
1 parent b3eb014 commit 3f4aabe
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,17 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov coverage
- name: Run pytest with coverage
run: |
coverage erase
pytest --doctest-modules --cov-report term-missing --cov-report xml --cov-branch --cov-append --cov=src
- name: Install Code Climate test-reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- name: Before build
run: ./cc-test-reporter before-build
- name: Run pytest with coverage
run: |
./cc-test-reporter before-build
coverage erase
pytest --doctest-modules --cov-report term-missing --cov-report xml --cov-branch --cov-append --cov=src
- name: After build
run: |
./cc-test-reporter after-build --exit-code $?
run: ./cc-test-reporter after-build --exit-code $?
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

0 comments on commit 3f4aabe

Please sign in to comment.