-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/add prompt tests and cleanup (#1523)
* add extra parsers * add prompt tests, cleanup * add prompt tests, cleanup * merge * set mock console as default * set mock console as default
- Loading branch information
1 parent
939f7d4
commit 746bfe4
Showing
11 changed files
with
308 additions
and
19 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
.github/actions/run-sdk-prompt-management-tests/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: 'Run SDK Prompt Management Tests' | ||
description: 'Runs SDK prompt management tests for R2R' | ||
runs: | ||
using: "composite" | ||
steps: | ||
# First run basic prompt operations | ||
- name: Add prompt test (SDK) | ||
working-directory: ./py | ||
shell: bash | ||
run: poetry run python tests/integration/runner_sdk.py test_add_prompt | ||
|
||
- name: Get prompt test (SDK) | ||
working-directory: ./py | ||
shell: bash | ||
run: poetry run python tests/integration/runner_sdk.py test_get_prompt | ||
|
||
- name: Get all prompts test (SDK) | ||
working-directory: ./py | ||
shell: bash | ||
run: poetry run python tests/integration/runner_sdk.py test_get_all_prompts | ||
|
||
- name: Update prompt test (SDK) | ||
working-directory: ./py | ||
shell: bash | ||
run: poetry run python tests/integration/runner_sdk.py test_update_prompt | ||
|
||
# Then run error handling and access control tests | ||
- name: Prompt error handling test (SDK) | ||
working-directory: ./py | ||
shell: bash | ||
run: poetry run python tests/integration/runner_sdk.py test_prompt_error_handling | ||
|
||
- name: Prompt access control test (SDK) | ||
working-directory: ./py | ||
shell: bash | ||
run: poetry run python tests/integration/runner_sdk.py test_prompt_access_control | ||
|
||
# Finally run deletion test | ||
- name: Delete prompt test (SDK) | ||
working-directory: ./py | ||
shell: bash | ||
run: poetry run python tests/integration/runner_sdk.py test_delete_prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.