Skip to content

Commit

Permalink
fix if integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jun 12, 2024
1 parent d42a718 commit a9004f1
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/unit-tests-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ concurrency:
cancel-in-progress: true

jobs:
get-changed-files:
runs-on: ubuntu-latest
outputs:
changed_files: ${{ steps.get_changes.outputs.changed_files }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Get changes
id: get_changes
run: |
echo "changed_files<<EOF" >> $GITHUB_OUTPUT
git diff --name-only -r HEAD^1 HEAD | while read line; do printf "%s\n" "$line"; done >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
unit-tests:
name: Unit Tests
strategy:
Expand All @@ -39,10 +55,7 @@ jobs:
# - os: macos-latest
# node-version: 20.x
runs-on: ${{ matrix.os }}
if: |
github.event_name == 'pull_request' &&
(contains(github.event.pull_request.paths, 'langchain-core') ||
contains(github.event.pull_request.paths, 'libs/langchain-${{ matrix.package }}'))
if: contains(needs.get-changed-files.outputs.changed_files, 'langchain-core/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-${{ matrix.package }}/')
env:
PUPPETEER_SKIP_DOWNLOAD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
Expand Down

0 comments on commit a9004f1

Please sign in to comment.