From 67dbf4bdc19a98267fbd0059b353da20aec375db Mon Sep 17 00:00:00 2001 From: Pankaj Singh <98807258+pankajastro@users.noreply.github.com> Date: Thu, 8 Aug 2024 15:04:13 +0530 Subject: [PATCH] Fix mis code coverage job issue (#46) * Fix mis code coverage job issue * Update anyscale_provider/operators/anyscale.py --- .github/workflows/test.yml | 2 +- scripts/test/unit_test.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c0e5d4..f71ab4c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -130,7 +130,7 @@ jobs: run: | pip3 install coverage - name: Download all coverage artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: path: ./coverage - name: Combine coverage diff --git a/scripts/test/unit_test.sh b/scripts/test/unit_test.sh index 4b6dec8..e35eaed 100644 --- a/scripts/test/unit_test.sh +++ b/scripts/test/unit_test.sh @@ -1,4 +1,8 @@ pytest \ -vv \ + --cov=anyscale_provider \ + --cov-report=term-missing \ + --cov-report=xml \ + --durations=0 \ --durations=0 \ -m "not (integration or perf)"