-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Send coverage report to codeclimate and codecov
Send coverage report to codeclimate and codecov again as well as test for all python- and os-versions.
- Loading branch information
Showing
1 changed file
with
26 additions
and
2 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 |
---|---|---|
|
@@ -16,8 +16,8 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.12"] #, "3.11", "3.10", "3.9"] | ||
os: [ubuntu-latest] #, macOS-latest, windows-latest] | ||
python-version: ["3.12", "3.11", "3.10", "3.9"] | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
fail-fast: false | ||
|
||
steps: | ||
|
@@ -32,3 +32,27 @@ jobs: | |
- name: Run Tests | ||
run: | | ||
pdm run pytest | ||
# See: https://martinheinz.dev/blog/69 "Ultimate CI Pipeline for All of Your Python Projects" | ||
- name: Use Codecov to track coverage | ||
uses: codecov/codecov-action@v4 | ||
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml # coverage report | ||
|
||
- name: Send report to CodeClimate | ||
uses: paambaati/[email protected] | ||
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' | ||
env: | ||
CC_TEST_REPORTER_ID: ${?{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: | | ||
${?{github.workspace}}/coverage.xml:coverage.py | ||
#- name: SonarCloud scanner | ||
# uses: sonarsource/sonarcloud-github-action@master | ||
# if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' | ||
# env: | ||
# GITHUB_TOKEN: ${?{ secrets.GITHUB_TOKEN }} | ||
# SONAR_TOKEN: ${?{ secrets.SONAR_TOKEN }} |