From 80145273115bbf846183f27c950ba02f6b94100a Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Wed, 5 Feb 2025 22:08:37 -0800 Subject: [PATCH] Emable python tests during coverage --- .github/workflows/build.yaml | 10 +--------- scripts/build_coverage.sh | 7 ++++++- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bcccb51a49f8c9..01f82c69dae9af 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -81,14 +81,6 @@ jobs: run: scripts/run_in_build_env.sh "ninja -C ./out" - name: Run Tests run: scripts/tests/gn_tests.sh - # TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227 - # TODO https://github.com/project-chip/connectedhomeip/issues/1512 - # - name: Run Code Coverage - # if: ${{ contains('main', env.BUILD_TYPE) }} - # run: scripts/tools/codecoverage.sh - # - name: Upload Code Coverage - # if: ${{ contains('main', env.BUILD_TYPE) }} - # run: bash <(curl -s https://codecov.io/bash) - name: Set up Build Without Detail Logging run: scripts/build/gn_gen.sh --args="chip_detail_logging=false" - name: Run Build Without Detail Logging @@ -508,4 +500,4 @@ jobs: platform: linux - name: Run Build Coverage - run: ./scripts/build_coverage.sh + run: ./scripts/build_coverage.sh --python diff --git a/scripts/build_coverage.sh b/scripts/build_coverage.sh index c9d942e8454e4e..571e9ccb06b5bc 100755 --- a/scripts/build_coverage.sh +++ b/scripts/build_coverage.sh @@ -172,8 +172,13 @@ if [ "$skip_gn" == false ]; then # 3) Run Python tests if requested # if [ "$ENABLE_PYTHON" == true ]; then + echo "Building python and applications ..." + scripts/run_in_build_env.sh \ + "./scripts/tests/local.py build" + echo "Running Python tests ..." - # TODO: run python tests. + scripts/run_in_build_env.sh \ + "./scripts/tests/local.py python-tests" fi # ----------------------------------------------------------------------------