Skip to content

build: bump codecov/codecov-action from 7.0.0 to 7.1.1 in the actions… #865

build: bump codecov/codecov-action from 7.0.0 to 7.1.1 in the actions…

build: bump codecov/codecov-action from 7.0.0 to 7.1.1 in the actions… #865

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.14", "3.13", "3.12", "3.11", "3.10"]
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Setup uv
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
- name: Install dependencies
run: uv sync --dev
- name: Run tests and collect coverage
run: |-
uv run coverage run --source=tests,cpp_linter_hooks -m pytest -vv
uv run coverage report
uv run coverage xml
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
- name: Test cpp-linter-hooks
run: bash testing/run.sh