@@ -15,14 +15,14 @@ concurrency:
15
15
jobs :
16
16
# Job to run integration tests from the main repository.
17
17
integration_tests_on_main :
18
- name : Integration tests (main repository)
18
+ name : Integration tests
19
19
runs-on : ubuntu-latest
20
- # If PR is from the main repository or it is a push to master.
20
+ # Run this only for PRs from the main repository or for pushes to master. Skip otherwise .
21
21
if : github.event.pull_request.head.repo.owner.login == 'apify' || github.ref == 'refs/heads/master'
22
22
strategy :
23
23
matrix :
24
- python-version : ["3.9", "3.12"] # Oldest and newest supported Python versions.
25
- max-parallel : 1 # No parallel tests to avoid exceeding API limits.
24
+ python-version : ["3.9", "3.12"] # Oldest and newest supported Python versions.
25
+ max-parallel : 1 # No parallel tests to avoid exceeding API limits.
26
26
27
27
steps :
28
28
- name : Checkout repository
@@ -45,10 +45,10 @@ jobs:
45
45
46
46
# Job to request approval before running integration tests for PRs from forks.
47
47
integration_tests_on_fork_approval :
48
- name : Approve integration tests for fork PR
48
+ name : Approve integration tests for PRs from forks
49
49
runs-on : ubuntu-latest
50
- # If the PR is from a fork .
51
- if : github.event.pull_request.head.repo.owner.login != 'apify'
50
+ # Run this only for PRs from forks. Skip otherwise .
51
+ if : github.event.pull_request.head.repo.owner.login != 'apify' && github.ref != 'refs/heads/master'
52
52
environment :
53
53
name : fork-pr-integration-tests
54
54
url : ${{ github.event.pull_request.html_url }}
@@ -58,15 +58,15 @@ jobs:
58
58
59
59
# Job to run integration tests for PRs from forks, only after manual approval.
60
60
integration_tests_on_fork :
61
- name : Integration tests (fork after approval)
61
+ name : Integration tests for PRs from forks
62
62
needs : integration_tests_on_fork_approval
63
- # If the PR is from a fork .
64
- if : github.event.pull_request.head.repo.owner.login != 'apify'
63
+ # Run this only for PRs from forks. Skip otherwise .
64
+ if : github.event.pull_request.head.repo.owner.login != 'apify' && github.ref != 'refs/heads/master'
65
65
runs-on : ubuntu-latest
66
66
strategy :
67
67
matrix :
68
- python-version : ["3.9", "3.12"] # Oldest and newest supported Python versions.
69
- max-parallel : 1 # No parallel tests to avoid overshooting limits.
68
+ python-version : ["3.9", "3.12"] # Oldest and newest supported Python versions.
69
+ max-parallel : 1 # No parallel tests to avoid overshooting limits.
70
70
71
71
steps :
72
72
- name : Checkout repository
0 commit comments