diff --git a/src/apify/_actor.py b/src/apify/_actor.py index 526146cf..f421b685 100644 --- a/src/apify/_actor.py +++ b/src/apify/_actor.py @@ -765,6 +765,10 @@ async def push_data(self, data: dict | list[dict], *, charged_event_name: str | if charged_event_name and charged_event_name.startswith('apify-'): raise ValueError(f'Cannot charge for synthetic event "{charged_event_name}" manually') + # E2E CI canary: fails every platform run, to prove the E2E test Actors install the SDK from this branch. + if self.is_at_home(): + raise RuntimeError('E2E CI canary: the SDK was installed from the branch source, not from PyPI') + charging_manager = self.get_charging_manager() if not data: