Skip to content

Update README.md to add CodeQL badge (#37) #122

Update README.md to add CodeQL badge (#37)

Update README.md to add CodeQL badge (#37) #122

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 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