From 98f68b11969f391e38b1fe4bf4db0cd266bd71e0 Mon Sep 17 00:00:00 2001 From: CodyCBakerPhD Date: Wed, 4 Sep 2024 16:18:34 -0400 Subject: [PATCH] enable CI on CLI streaming --- .github/workflows/streaming-tests.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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