Skip to content

Commit

Permalink
Emable python tests during coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed Feb 6, 2025
1 parent a998bf6 commit 8014527
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -508,4 +500,4 @@ jobs:
platform: linux

- name: Run Build Coverage
run: ./scripts/build_coverage.sh
run: ./scripts/build_coverage.sh --python
7 changes: 6 additions & 1 deletion scripts/build_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

# ----------------------------------------------------------------------------
Expand Down

0 comments on commit 8014527

Please sign in to comment.