Skip to content

Develop

Develop #66

Workflow file for this run

---
name: C/C++ CI
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libfftw3-dev libpoco-dev
- name: cmake
run: cmake -B cmake-build -S . -GNinja && cmake --build cmake-build
- name: Run tests
run: ctest --test-dir cmake-build --output-on-failure
- name: Generate coverage report
run: |
python3 -m pip install gcovr
make coverage
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Run build-wrapper
run: |
build-wrapper-linux-x86-64 --out-dir cmake-build-sonarcube-wrap cmake --build cmake-build
- name: run tox
run: python3 -m pip install tox && tox -e py