feat(vacuum-module): more sensor hardware + sensor read functionality #575
This file contains hidden or 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
| name: 'Code Coverage' | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'edge' | |
| workflow_dispatch: | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| generate-coverage: | |
| name: 'Generate-Coverage' | |
| runs-on: 'ubuntu-24.04' | |
| timeout-minutes: 10 | |
| env: | |
| CC: gcc-13 | |
| CXX: g++-13 | |
| steps: | |
| - run: | | |
| sudo apt update | |
| sudo apt install gcc-13 g++-13 lcov | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: 'Install lcov_cobertura module' | |
| run: pip install lcov_cobertura | |
| - uses: 'actions/checkout@v4' | |
| with: | |
| fetch-depth: 0 | |
| - uses: 'actions/cache@v4' | |
| with: | |
| path: './stm32-tools' | |
| key: stm32-host-${{ secrets.MODULES_STM32_CACHE_VERSION }}-${{ hashFiles('cmake/*') }} | |
| restore-keys: stm32-host-${{ secrets.MODULES_STM32_CACHE_VERSION }}- | |
| - name: 'Configure' | |
| run: cmake --preset=stm32-host -DENABLE_COVERAGE=On -DCMAKE_BUILD_TYPE=Debug | |
| - name: 'Run all stm32 tests' | |
| run: | | |
| cmake --build --preset host --target common-build-and-test | |
| cmake --build --preset host --target thermocycler-gen2-build-and-test | |
| cmake --build --preset host --target heater-shaker-build-and-test | |
| cmake --build --preset host --target tempdeck-gen3-build-and-test | |
| cmake --build --preset host --target flex-stacker-build-and-test | |
| cmake --build --preset host --target vacuum-module-build-and-test | |
| - name: 'Generate coverage' | |
| run: cmake --build --preset host --target lcov-geninfo | |
| - name: 'Convert coverage to xml' | |
| run: lcov_cobertura build-stm32-host/lcov/data/capture/all_targets.info | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| files: ./coverage.xml | |
| name: codecov-stm32-modules | |
| fail_ci_if_error: true |