From 5c64c171c04296054f45f7ec263bce3e99e563d0 Mon Sep 17 00:00:00 2001 From: Benjamin Nativi <33184490+bnativi@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:38:35 -0500 Subject: [PATCH] Fix code coverage with external tests (#685) Co-authored-by: b.nativi --- .github/workflows/tests-and-coverage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests-and-coverage.yml b/.github/workflows/tests-and-coverage.yml index bda200daa..e415c899c 100644 --- a/.github/workflows/tests-and-coverage.yml +++ b/.github/workflows/tests-and-coverage.yml @@ -66,11 +66,11 @@ jobs: run: pip install -e ".[test]" working-directory: ./client - name: run integration tests - run: coverage run --source="api/valor_api,client/valor" -m pytest -v integration_tests/client/* + run: coverage run -a --source="api/valor_api,client/valor" -m pytest -v integration_tests/client/* - name: run external integration tests run: | if ${{ github.ref == 'refs/heads/main' }}; then - coverage run --source="api/valor_api,client/valor" -m pytest -v integration_tests/external/* + coverage run -a --source="api/valor_api,client/valor" -m pytest -v integration_tests/external/* fi env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}