Skip to content

Commit

Permalink
Run tests using PR merge ref and run all necessary tests on release b…
Browse files Browse the repository at this point in the history
…ranches (#1045)
  • Loading branch information
papa99do authored Nov 20, 2024
1 parent 14d067d commit feefb49
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/arm64_docker_marqo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ on:
push:
branches:
- mainline
- releases/*
paths-ignore:
- '**.md'

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cpu_docker_marqo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ on:
push:
branches:
- mainline
- releases/*
paths-ignore:
- '**.md'

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cpu_local_marqo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ on:
push:
branches:
- mainline
- releases/*
paths-ignore:
- '**.md'
pull_request_target:
branches:
- mainline
- releases/*
paths-ignore:
- '**.md'

Expand Down Expand Up @@ -92,6 +94,9 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
# if triggered by a pull_request_target event, we should use the merge ref of the PR
# if triggered by a push event, github.ref points to the head of the source branch
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.ref }}

- name: Set up Python 3.8
uses: actions/setup-python@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cuda_docker_marqo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ on:
push:
branches:
- mainline
- releases/*
paths-ignore:
- '**.md'

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/largemodel_unit_test_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ on:
push:
branches:
- mainline
- releases/*
paths-ignore:
- '**.md'
pull_request_target:
branches:
- mainline
- releases/*
paths-ignore:
- '**.md'

Expand Down Expand Up @@ -67,6 +69,9 @@ jobs:
with:
fetch-depth: 0
path: marqo
# if triggered by a pull_request_target event, we should use the merge ref of the PR
# if triggered by a push event, github.ref points to the head of the source branch
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.ref }}

- name: Set up Python 3.8
uses: actions/setup-python@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unit_test_200gb_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
with:
fetch-depth: 0
path: marqo
# if triggered by a pull_request_target event, we should use the merge ref of the PR
# if triggered by a push event, github.ref points to the head of the source branch
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.ref }}

- name: Set up Python 3.8
uses: actions/setup-python@v3
Expand Down

0 comments on commit feefb49

Please sign in to comment.