Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ jobs:
container:
image: fedora:latest

permissions:
id-token: write # Required for Codecov OIDC authentication

steps:
- name: Install git-core
run: dnf install -y git-core

- uses: actions/checkout@v6

- name: Install uv and setup Python version
Expand All @@ -49,10 +55,18 @@ jobs:
enable-cache: true

- name: Install dependencies
run: uv sync --group test --no-dev
run: uv sync --group test --group coverage --no-dev

- name: Run tests
run: uv run pytest tests
run: uv run pytest tests --cov=productmd --cov-report=xml:coverage.xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
use_oidc: true
flags: unit-tests
files: coverage.xml
fail_ci_if_error: false

test-py36:
needs: [lint, format, bandit]
Expand Down
29 changes: 29 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "50...100"

status:
project:
default:
target: auto
threshold: 1%
patch:
default:
target: auto
threshold: 1%

flags:
unit-tests:
carryforward: true

comment:
layout: "reach,diff,flags,files"
behavior: default

ignore:
- "doc/**"
- "tests/**"
Loading