Skip to content

Merge pull request #55 from konflux-ci/konflux/references/main #202

Merge pull request #55 from konflux-ci/konflux/references/main

Merge pull request #55 from konflux-ci/konflux/references/main #202

Workflow file for this run

---
name: Unit Tests
'on':
push:
branches: [main]
pull_request:
permissions:
contents: read
id-token: write
pull-requests: write
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run unit tests with coverage
run: |
python -m pytest tests/unit/ \
-m "unit or security" \
--cov=. \
--cov-report=xml \
--cov-report=term \
--cov-report=html \
--cov-branch \
-v
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
use_oidc: true
file: ./coverage.xml
flags: unit-tests
name: codecov-umbrella
fail_ci_if_error: false
verbose: true