Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add integration test on check_compatibility action #14

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
shell: bash
run: |
make test
- name: Run integration tests
shell: bash
run: |
make integration_tests
- name: Ensure the tests did not create any additional files
shell: bash
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/check_compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Check Langchain-Upstage Compatibility

on:
workflow_dispatch:
schedule:
- cron: '0 9 * * *'
workflow_call:
inputs:
working-directory:
required: true
type: string
description: "From which folder this pipeline executes"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
test:
name: test
needs: [ build ]
uses: ./.github/workflows/_test.yml
secrets: inherit

compile-integration-tests:
name: integration test
needs: [ build ]
uses: ./.github/workflows/_compile_integration_test.yml
secrets: inherit

ci_success:
name: "CI Success"
needs: [build, test, compile-integration-tests]
if: |
always()
runs-on: ubuntu-latest
env:
JOBS_JSON: ${{ toJSON(needs) }}
RESULTS_JSON: ${{ toJSON(needs.*.result) }}
EXIT_CODE: ${{!contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && '0' || '1'}}
steps:
- name: "CI Success"
run: |
echo $JOBS_JSON
echo $RESULTS_JSON
echo "Exiting with $EXIT_CODE"
exit $EXIT_CODE
Loading