Skip to content

Commit

Permalink
Temporarily testing a fix to use merge branches in e2es
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Browning <[email protected]>
  • Loading branch information
bbrowning committed Jan 16, 2025
1 parent 050e8a6 commit 0719a73
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions .github/workflows/e2e-nvidia-l4-x1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@
name: E2E (NVIDIA L4 x1)

on:
# temporarily run for this PR for anything that changes this workflow file
pull_request:
paths:
- ".github/workflows/e2e-nvidia-l4-x1.yml" # This workflow
# run against every merge commit to 'main' and release branches
push:
branches:
- main
- release-*
# only run on PRs that touch certain regex paths
pull_request_target:
branches:
- main
- release-*
paths:
# note this should match the merging criteria in 'mergify.yml'
- '**.py'
- 'pyproject.toml'
- 'requirements**.txt'
- '.github/workflows/e2e-nvidia-l4-x1.yml' # This workflow
# # only run on PRs that touch certain regex paths
# pull_request_target:
# branches:
# - main
# - release-*
# paths:
# # note this should match the merging criteria in 'mergify.yml'
# - '**.py'
# - 'pyproject.toml'
# - 'requirements**.txt'
# - '.github/workflows/e2e-nvidia-l4-x1.yml' # This workflow

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
Expand Down Expand Up @@ -96,18 +100,10 @@ jobs:
- name: Checkout instructlab/sdg
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: "instructlab/sdg"
path: "sdg"
# https://github.com/actions/checkout/issues/249
fetch-depth: 0

- name: Fetch and checkout PR
if: ${{ github.event_name == 'pull_request_target' }}
working-directory: ./sdg
run: |
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-${{ github.event.pull_request.number }}
git checkout pr-${{ github.event.pull_request.number }}
- name: Install ilab
working-directory: ./instructlab
run: |
Expand Down

0 comments on commit 0719a73

Please sign in to comment.