From f72033047da057bf125655c4cedb9c466e06d476 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 11 Jun 2024 17:41:59 -0700 Subject: [PATCH] depends on --- .github/workflows/compatibility.yml | 42 +++++++---------------------- 1 file changed, 10 insertions(+), 32 deletions(-) diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index aaeabaa74676..3878dd398184 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -24,9 +24,8 @@ env: # Run a separate job for each check in the docker-compose file, # so that they run in parallel instead of overwhelming the default 2 CPU runner. jobs: - cohere-lowest-deps: + get-changed-files: runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' }} steps: - name: Checkout uses: actions/checkout@v3 @@ -38,34 +37,13 @@ jobs: echo "changed_files<> $GITHUB_OUTPUT git diff --name-only -r HEAD^1 HEAD >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - - - name: Use changed files - run: | - changed_files="${{ steps.get_changes.outputs.changed_files }}" - echo "Changed files: $changed_files" - echo "${{ contains(steps.get_changes.outputs.changed_files, 'libs/langchain-cohere') || contains(steps.get_changes.outputs.changed_files, 'langchain-core') }}" - # Perform further actions based on the changed files - - # - name: Get changes - # run: git diff --name-only -r HEAD^1 HEAD - - - - # - name: Git diff - # run: git diff --name-only -r HEAD^1 HEAD - # - name: Log changed files - - # run: echo "${{ contains(git diff --name-only -r HEAD^1 HEAD, 'libs/langchain-cohere') }}" - # - uses: actions/checkout@v4 - # - name: Use Node.js ${{ env.NODE_VERSION }} - # uses: actions/setup-node@v3 - # with: - # node-version: ${{ env.NODE_VERSION }} - # cache: "yarn" - # - name: Install dependencies - # run: yarn install --immutable - # - name: Build `@langchain/standard-tests` - # run: yarn build --filter=@langchain/standard-tests - # - name: Test `@langchain/cohere` with lowest deps - # run: docker compose -f dependency_range_tests/docker-compose.yml run cohere-lowest-deps \ No newline at end of file + cohere-lowest-deps: + depends-on: get-changed-files + runs-on: ubuntu-latest + if: ${{ contains(steps.get_changes.outputs.changed_files, 'libs/langchain-cohere') || contains(steps.get_changes.outputs.changed_files, 'langchain-core') }} + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: ECHO BRAH! + run: echo "BRAH!"