Skip to content

Commit cbf876d

Browse files
vdusekclaude
andauthored
ci: Skip integration tests for fork PRs (#629)
## Summary - Add `if` condition to the `integration_tests` job in the reusable `_tests.yaml` workflow - Integration tests now only run when the PR originates from the `apify` org or on pushes to `master` - This aligns with how the SDK handles it and prevents failing integration tests on fork PRs (which lack access to secrets) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2eb0a2d commit cbf876d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/_tests.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424

2525
integration_tests:
2626
name: Integration tests
27+
if: >-
28+
${{
29+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login == 'apify') ||
30+
(github.event_name == 'push' && github.ref == 'refs/heads/master')
31+
}}
2732
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
2833
secrets: inherit
2934
with:

0 commit comments

Comments
 (0)