Skip to content

ci: Update sonar-scanner Github action #447

ci: Update sonar-scanner Github action

ci: Update sonar-scanner Github action #447

Workflow file for this run

name: Build and Test
on:
push:
branches: '**'
pull_request:
branches: '**'
jobs:
build_and_test:
runs-on: ubuntu-22.04
strategy:
matrix:
sanitizer: ["address", "leak", "thread", "undefined"]
compiler: ["clang-14", "gcc-12"]
steps:
- name: Checkout code including full history and submodules
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Install dependencies from APT repository
run: |
sudo apt-get update
sudo apt-get install libcunit1-dev wget unzip
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Build all binaries
run: |
tools/ci/run_ci.sh --run-build --sanitizer ${{ matrix.sanitizer }} --verbose
env:
CC: ${{ matrix.compiler }}
- name: Build, execute sanitized unit tests
run: |
tools/ci/run_ci.sh --run-tests
env:
CC: ${{ matrix.compiler }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/integration/requirements.txt
- name: Execute integration tests
run: |
python -c "import sys; print(sys.version)"
pytest -v tests/integration