Skip to content

build: bump the actions group with 3 updates #566

build: bump the actions group with 3 updates

build: bump the actions group with 3 updates #566

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.14", "3.13", "3.12", "3.11", "3.10", "3.9"]
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c #v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup uv
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
- 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@671740ac38dd9b0130fbe1cec585b89eea48d3de #v5
if: 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