Adds a memory_stats metrics component #550
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: Run Unit Tests | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, macos-14, windows-2022] | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Checkout submodules | |
| run: | | |
| git submodule update --init | |
| - name: configure | |
| run: | | |
| cmake -S. -Bbuild -G "Unix Makefiles" -DENABLE_TESTING=ON | |
| mkdir -p coverage | |
| - name: build | |
| working-directory: ./build | |
| run: | | |
| make -j | |
| - name: test | |
| working-directory: ./build | |
| run: | | |
| ctest --output-on-failure --verbose | |
| - name: setup python | |
| if: contains(matrix.os, 'ubuntu') | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: install gcovr | |
| if: contains(matrix.os, 'ubuntu') | |
| run: | | |
| pip install gcovr==7.2 | |
| - name: coverage | |
| if: contains(matrix.os, 'ubuntu') | |
| run: | | |
| gcovr --html-details ./coverage/report.html \ | |
| --html-theme github.dark-green \ | |
| --filter bcmp \ | |
| --filter middleware \ | |
| --filter drivers \ | |
| --filter network \ | |
| --filter common \ | |
| build/test | |
| - name: artifacts | |
| if: contains(matrix.os, 'ubuntu') | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage_report | |
| path: ./coverage |