Skip to content

Install clang-tools into current pre-commit venv #85

Install clang-tools into current pre-commit venv

Install clang-tools into current pre-commit venv #85

Workflow file for this run

name: Test
on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install -r requirements-dev.txt
- name: Run pre-commit against all files
run: pre-commit run --all-files
- name: Run tests and collect coverage
run: |
coverage run --source=tests,cpp_linter_hooks -m pytest -vv
coverage report
coverage xml
- uses: codecov/codecov-action@v3
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: sh testing/run.sh