-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate from Coveralls to CodeClimate for coverage reporting
- Replace Coveralls GitHub action with CodeClimate coverage reporter - Add fetch-depth: 0 to checkout action for proper git history comparison - Enable debug mode in CodeClimate action for better visibility - Update README badges to use CodeClimate instead of Coveralls Note: After merging, CC_TEST_REPORTER_ID secret needs to be added to the repository settings from CodeClimate.
- Loading branch information
1 parent
239d248
commit 706a81a
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ jobs: | |
steps: | ||
- name: "Checkout source code" | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Install Poetry" | ||
run: pipx install poetry | ||
|
@@ -41,13 +43,11 @@ jobs: | |
run: | | ||
poetry run pytest --cov=src --cov-report=xml --cov-report=term-missing | ||
- name: Upload coverage to Coveralls | ||
uses: coverallsapp/github-action@v2 | ||
- name: Upload coverage to Code Climate | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
file: coverage.xml | ||
flag-name: Unit Tests | ||
fail-on-error: false | ||
base-path: ${{ github.workspace }} | ||
compare-ref: ${{ github.event.pull_request.base.ref || github.base_ref || 'main' }} | ||
github-write-mode: true | ||
coverageLocations: | | ||
${{github.workspace}}/coverage.xml:coverage.py | ||
debug: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters