When Python code changes, build C++ and run static analysis

This commit is contained in:
Daniel Markstedt 2023-11-01 21:41:24 +09:00 committed by Daniel Markstedt
parent 8cb4105409
commit 37b9110c99

View File

@ -1,23 +1,21 @@
name: C++ Tests/Analysis name: C++ Tests; Full Static Analysis
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
paths: branches:
- 'cpp/**' - 'develop'
- '.github/workflows/cpp.yml' - 'main'
pull_request: pull_request:
paths: paths:
- 'cpp/**' - 'cpp/**'
- 'python/**'
- '.github/workflows/cpp.yml' - '.github/workflows/cpp.yml'
types: types:
- assigned - assigned
- opened - opened
- synchronize - synchronize
- reopened - reopened
branches:
- 'develop'
- 'main'
env: env:
APT_PACKAGES: libspdlog-dev libpcap-dev libevdev2 libev-dev protobuf-compiler libgtest-dev libgmock-dev APT_PACKAGES: libspdlog-dev libpcap-dev libevdev2 libev-dev protobuf-compiler libgtest-dev libgmock-dev
@ -118,4 +116,4 @@ jobs:
--define sonar.coverage.exclusions="cpp/**/test/**" --define sonar.coverage.exclusions="cpp/**/test/**"
--define sonar.cpd.exclusions="cpp/**/test/**" --define sonar.cpd.exclusions="cpp/**/test/**"
--define sonar.inclusions="cpp/**,python/**" --define sonar.inclusions="cpp/**,python/**"
--define sonar.python.version=3.7,3.9 --define sonar.python.version=3.9,3.11