Skip to content

Commit

Permalink
Fix mis code coverage job issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Aug 7, 2024
1 parent 1a66254 commit 21c5064
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions anyscale_provider/operators/anyscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ def __init__(
self.canary_percent = canary_percent
self.max_surge_percent = max_surge_percent

@staticmethod
def test_me() -> None:
assert 1 == 1

@cached_property
def hook(self) -> AnyscaleHook:
"""Return an instance of the AnyscaleHook."""
Expand Down
4 changes: 4 additions & 0 deletions scripts/test/unit_test.sh
Original file line number Diff line number Diff line change
@@ -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)"

0 comments on commit 21c5064

Please sign in to comment.