Skip to content

Commit

Permalink
Add missing workflow, fix typo in requirements format (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuzmik authored Dec 17, 2024
1 parent 3981ff0 commit 5bc9b3d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/lib-haystack-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Workflow to run Haystack tests
#
# Please read inputs to provide correct values.
#
name: SDK Lib Haystack Tests
run-name: "SDK Lib Haystack Tests ${{ github.ref_name }} by @${{ github.actor }}"
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_ORG_ID: ${{ secrets.OPENAI_ORG_ID }}
on:
workflow_call:

jobs:
tests:
name: Haystack Python ${{matrix.python_version}}
runs-on: ubuntu-latest
defaults:
run:
working-directory: sdks/python

strategy:
fail-fast: true
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Setup Python ${{matrix.python_version}}
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python_version}}

- name: Install opik
run: pip install .

- name: Install test tools
run: |
cd ./tests
pip install --no-cache-dir --disable-pip-version-check -r test_requirements.txt
- name: Install lib
run: |
cd ./tests
pip install --no-cache-dir --disable-pip-version-check -r library_integration/haystack/requirements.txt
- name: Run tests
run: |
cd ./tests/library_integration/haystack/
python -m pytest -vv .
7 changes: 7 additions & 0 deletions .github/workflows/lib-integration-tests-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
- langchain
- llama_index
- anthropic
- aisuite
- haystack
schedule:
- cron: "0 0 */1 * *"
pull_request:
Expand Down Expand Up @@ -73,3 +75,8 @@ jobs:
uses: ./.github/workflows/lib-aisuite-tests.yml
secrets: inherit

haystack_tests:
needs: [init_environment]
if: contains(fromJSON('["haystack", "all"]'), needs.init_environment.outputs.LIBS)
uses: ./.github/workflows/lib-haystack-tests.yml
secrets: inherit

0 comments on commit 5bc9b3d

Please sign in to comment.