mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-10-12 02:12:50 +00:00
Make promptnode test unit (#4420)
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ topic:LLM:
|
||||
- test/nodes/test_prompt_node.py
|
||||
topic:promptnode:
|
||||
- haystack/nodes/prompt/*
|
||||
- test/nodes/test_prompt_node.py
|
||||
- test/prompt/*
|
||||
topic:file_converter:
|
||||
- haystack/nodes/file_converter/*
|
||||
- test/nodes/test_file_converter.py
|
||||
|
||||
@@ -95,6 +95,7 @@ jobs:
|
||||
- nodes
|
||||
- agents
|
||||
- preview
|
||||
- prompt
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -402,6 +403,34 @@ jobs:
|
||||
channel: '#haystack'
|
||||
if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main'
|
||||
|
||||
integration-tests-promptnode:
|
||||
name: Integration / PromptNode / ${{ matrix.os }}
|
||||
needs:
|
||||
- unit-tests
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ ubuntu-latest,windows-latest ]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Python
|
||||
uses: ./.github/actions/python_cache/
|
||||
|
||||
- name: Install Haystack
|
||||
run: pip install -U .
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
pytest --maxfail=5 -m "integration" test/prompt
|
||||
|
||||
- uses: act10ns/slack@v2
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
channel: '#haystack'
|
||||
if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main'
|
||||
|
||||
integration-tests-agents:
|
||||
name: Integration / Agents / ${{ matrix.os }}
|
||||
needs:
|
||||
|
||||
Reference in New Issue
Block a user