Skip to content

Fix issue #22: Remove redundant Python tests and fix Codecov CI #10

Fix issue #22: Remove redundant Python tests and fix Codecov CI

Fix issue #22: Remove redundant Python tests and fix Codecov CI #10

Workflow file for this run

name: Tests
on:
push:
branches: [ main, feat/* ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --dev
- name: Run tests with coverage
run: uv run pytest --verbose --cov=bpdecoderplus --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false