From 5e3af2b60236a5e9a68f853dc241c5b6a68d2a2e Mon Sep 17 00:00:00 2001 From: kunitoki Date: Sun, 21 Jan 2024 10:34:27 +0100 Subject: [PATCH] Add coverage --- .github/workflows/coverage.yml | 36 +++++++++++++++++++++++++++++++ CMakeLists.txt | 19 ++++++++++++++-- cmake/CodeCoverage.cmake | 5 +++-- tests/test_juce_core/test_File.py | 10 +++++++++ 4 files changed, 66 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/coverage.yml create mode 100644 tests/test_juce_core/test_File.py diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000000..6ef781e236 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,36 @@ +name: Code Coverage + +on: push + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + code-coverage: + name: Code Coverage + runs-on: ubuntu-latest + + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Setup and install python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Build wheels and test + uses: pypa/cibuildwheel@v2.16.2 + env: + CIBW_ARCHS: x86_64 + CIBW_BUILD: cp310-manylinux_x86_64 + CIBW_TEST_SKIP: "*-manylinux_aarch64 *-macosx_universal2:arm64 *-win_arm64" + CIBW_ENVIRONMENT: POPSICLE_COVERAGE=1 + + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bccc9c66f..05bcd1face 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,12 +110,27 @@ _juce_set_output_name (${PROJECT_NAME} $