Skip to content

Bump actions/setup-python from 4 to 5 #55

Bump actions/setup-python from 4 to 5

Bump actions/setup-python from 4 to 5 #55

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:
files: ./coverage.xml
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
- name: Test cpp-linter-hooks
run: |
pip install pre-commit
pre-commit install
pre-commit try-repo . -c testing/.pre-commit-config.yaml --files testing/main.c | tee result.txt || true
grep -e "Failed" result.txt
if [ $? -ne 0 ]; then
exit 1
fi