Bump pytest-cov from 6.1.0 to 6.1.1 #762
Workflow file for this run
This file contains hidden or 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
--- | |
name: Python CI Coverage | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: ["main"] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: ["main"] | |
workflow_dispatch: | |
env: | |
LOG_LEVEL: INFO | |
jobs: | |
coverage: | |
name: "Python CI Coverage" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-24.04"] | |
python: ["3.12"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
# Shallow clones should be disabled for a better relevancy of analysis | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install | |
run: | | |
pip3 install -r requirements.txt | |
- name: Test an coverage collect | |
run: > | |
python3 -m coverage run -m pytest --verbose | |
-o log_cli=true | |
--log-cli-level=INFO | |
src/ | |
- name: Coverage Report | |
run: | | |
python3 -m coverage report | |
- name: Coverage lcov | |
run: | | |
python3 -m coverage lcov -o coverage/lcov.info | |
- name: Upload coverage reports to Codecov with GitHub Action | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # required | |
verbose: true # optional (default = false) | |
- name: Coverage XML | |
run: | | |
python3 -m coverage xml | |
- name: Analyze with SonarQube / SonarCloud | |
uses: SonarSource/sonarqube-scan-action@master | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
# Needed to get PR information, if any | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |