Add test for stats correctness of high-rate vaccination; update vax v… #428
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Action to run cpplint recursively on all pushes and pull requests | |
# https://github.com/cpplint/GitHub-Action-for-cpplint | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "src/**" | |
- "inst/include/**" | |
name: Cpp-lint-check | |
jobs: | |
cpplint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v2 | |
- run: pip install cpplint | |
- run: cpplint --filter="-build/c++11, -build/include_subdir" --exclude="src/RcppExports.cpp" src/*.cpp | |
- run: cpplint --filter="-build/c++11, -build/include_subdir" --exclude="inst/include/epidemics.h" inst/include/*.h | |
cppcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sudo apt-get install cppcheck | |
- run: cppcheck --std=c++14 -i src/RcppExports.cpp --enable=performance,portability,warning,style --error-exitcode=1 src | |
- run: cppcheck --std=c++14 --language=c++ --enable=performance,portability,warning,style --error-exitcode=1 inst/include/*.h |