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

[pf azure tests] Separate Azure Unit and E2ETests in pipeline #3113

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/sdk-cli-azure-test-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,17 @@ jobs:
poetry run pip show promptflow-azure
poetry run pip show promptflow-tools

- name: Run SDK CLI Azure Test
- name: Run SDK CLI Azure Test Unit Tests
shell: pwsh
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
poetry run pytest ${{ inputs.filepath }} -n auto -m "unittest or e2etest"
poetry run pytest ${{ inputs.filepath }} -n auto -m "unittest"

- name: Run SDK CLI Azure Test E2E Tests
shell: pwsh
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
poetry run pytest ${{ inputs.filepath }} -n auto -m "e2etest"

- name: Upload Test Results
if: always()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,9 @@ def pfs_op(app: Flask):
# Hack to import the pfs test utils from the devkit tests
import sys

temp_path = (
Path(PROMPTFLOW_ROOT)
.joinpath("..", "promptflow-devkit", "tests", "sdk_pfs_test")
.resolve()
.absolute()
.as_posix()
)
temp_path = Path(PROMPTFLOW_ROOT).joinpath("..", "promptflow-devkit", "tests").resolve().absolute().as_posix()
sys.path.append(temp_path)
# TODO: avoid doing this as utils is a widely used module name
from utils import PFSOperations
from sdk_pfs_test.utils import PFSOperations

client = app.test_client()
return PFSOperations(client)
Expand Down