Skip to content

Merge pull request #507 from Blueprints-org/dependabot/pip/pygments-a… #336

Merge pull request #507 from Blueprints-org/dependabot/pip/pygments-a…

Merge pull request #507 from Blueprints-org/dependabot/pip/pygments-a… #336

name: Code Coverage
on:
push:
branches: [main]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.12' ]
name: Code coverage with python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: install uv
uses: astral-sh/setup-uv@v5
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: uv pip install -e .[dev] --system
- name: Generate coverage report
run: |
uv pip install pytest --system
uv pip install pytest-cov --system
pytest --cov=./blueprints --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true