diff --git a/.github/workflows/streaming-tests.yml b/.github/workflows/streaming-tests.yml index d9f194845..e67bcf289 100644 --- a/.github/workflows/streaming-tests.yml +++ b/.github/workflows/streaming-tests.yml @@ -31,7 +31,17 @@ jobs: run: pip install ".[dandi]" - name: Run pytest on stream tests with coverage - run: pytest -rsx --cov=nwbinspector --cov-report xml:./coverage.xml tests/streaming_tests.py + run: | + pytest -rsx --cov=nwbinspector --cov-report xml:./api_coverage.xml tests/streaming_tests.py + pytest -rsx --cov=nwbinspector --cov-report xml:./cli_coverage.xml tests/streaming_cli_tests.py + + - if: ${{ matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest' }} + name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + file: ./api_coverage.xml - if: ${{ matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest' }} name: Upload coverage to Codecov @@ -39,4 +49,4 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true - file: ./coverage.xml + file: ./cli_coverage.xml