Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Feb 2, 2024
1 parent 6c15df7 commit 7948c1e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/actions/js-integration-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ inputs:
node-version:
description: "Node version"
required: true
langchain-api-key:
description: "Langchain"
required: true
openai-api-key:
description: "OpenAI API key"
required: false
runs:
using: "composite"
steps:
Expand All @@ -28,8 +34,8 @@ runs:
working-directory: js
env:
LANGCHAIN_TRACING_V2: "true"
LANGCHAIN_API_KEY: ${{ secrets.LANGCHAIN_API_KEY }}

LANGCHAIN_API_KEY: ${{ inputs.langchain-api-key }}
OPENAI_API_KEY: ${{ inputs.openai-api-key }}

- name: Run JS integration tests
run: yarn test:integration
Expand Down
9 changes: 8 additions & 1 deletion .github/actions/python-integration-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ inputs:
python-version:
description: "Python version"
required: true
langchain-api-key:
description: "Langchain"
required: true
openai-api-key:
description: "OpenAI API key"
required: false
runs:
using: "composite"
steps:
Expand All @@ -28,8 +34,9 @@ runs:

- name: Run integration tests
env:
LANGCHAIN_API_KEY: ${{ secrets.LANGCHAIN_API_KEY }}
LANGCHAIN_TRACING_V2: "true"
LANGCHAIN_API_KEY: ${{ inputs.langchain-api-key }}
OPENAI_API_KEY: ${{ inputs.openai-api-key }}
run: make integration_tests
shell: bash
working-directory: python
4 changes: 4 additions & 0 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
uses: ./.github/actions/python-integration-tests
with:
python-version: 3.11
langchain-api-key: ${{ secrets.LANGCHAIN_API_KEY }}
openai-api-key: ${{ secrets.OPENAI_API_KEY }}

js_integration_test:
name: JS Integration Test
Expand All @@ -49,3 +51,5 @@ jobs:
uses: ./.github/actions/js-integration-tests
with:
node-version: 18.x
langchain-api-key: ${{ secrets.LANGCHAIN_API_KEY }}
openai-api-key: ${{ secrets.OPENAI_API_KEY }}

0 comments on commit 7948c1e

Please sign in to comment.