Skip to content

Commit

Permalink
chore: Send coverage report to codeclimate and codecov
Browse files Browse the repository at this point in the history
Send coverage report to codeclimate and codecov again as well as test for all python- and os-versions.
  • Loading branch information
pbrod committed Oct 4, 2024
1 parent f95a408 commit 857c777
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 857c777

Please sign in to comment.