Skip to content

[RSPEED-370] Add Konflux pipelines (#10) #41

[RSPEED-370] Add Konflux pipelines (#10)

[RSPEED-370] Add Konflux pipelines (#10) #41

Workflow file for this run

name: Unit tests
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
build:
name: Units - ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version:
- "3.9"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements-test-${{ matrix.python-version }}.txt -r requirements/requirements-${{ matrix.python-version }}.txt
- name: Test with pytest
run: |
pytest --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
env_vars: OS,PYTHON
file: ./coverage.xml
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true