diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index c8b6feec..aae6dd62 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -25,15 +25,22 @@ jobs: pip install pytest pip install coverage + # Initialize coverage data file + coverage erase + for module in $(find . -maxdepth 1 -type d -name "thousandeyes-sdk-*" ! -name "thousandeyes-sdk-core" | cut -c 3-); do pip install -e $module - coverage run -m pytest $module + coverage run --append -m pytest $module done + + # Combine coverage data and generate report + coverage combine coverage xml - - name: Get Cover + + - name: Get Coverage uses: orgoro/coverage@v3.2 with: - coverageFile: ./coverage.xml - thresholdAll: 0.4 - thresholdNew: 0.6 - token: ${{ secrets.GITHUB_TOKEN }} + coverageFile: ./coverage.xml + thresholdAll: 0.4 + thresholdNew: 0.6 + token: ${{ secrets.GITHUB_TOKEN }}