Skip to content

Commit

Permalink
enable CI on CLI streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Sep 4, 2024
1 parent 257acf6 commit 98f68b1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/streaming-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,22 @@ 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
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
file: ./coverage.xml
file: ./cli_coverage.xml

0 comments on commit 98f68b1

Please sign in to comment.