Make promptnode test unit (#4420)

This commit is contained in:
Vladimir Blagojevic
2023-03-15 22:17:23 +01:00
committed by GitHub
parent b59cf76093
commit 2538b4cbc9
4 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -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
+29
View File
@@ -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:
View File