Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
crazygao committed Oct 23, 2023
1 parent f38a89f commit 8a6b456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/promptflow-replay-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
python -m pip install --upgrade wheel
python -m pip install --upgrade keyrings.alt
python -m pip install --upgrade beautifulsoup4==4.12.2
gci . -Recurse | % {if ($_.Name.Contains('.whl')) {python -m pip install $_.FullName}}
gci . -Recurse | % {if ($_.Name.Contains('.whl')) {python -m pip install $_.FullName --force}}
pip freeze
- name: Azure Login
uses: azure/login@v1
Expand All @@ -109,7 +109,6 @@ jobs:
-t ${{ github.workspace }}/src/promptflow/tests/sdk_cli_test `
-l eastus `
-m "unittest or e2etest" `
-n ${{ steps.cpu-cores.outputs.count }} `
--coverage-config ${{ github.workspace }}/src/promptflow/tests/sdk_cli_test/.coveragerc
- name: Upload Test Results
if: always()
Expand Down
4 changes: 1 addition & 3 deletions scripts/building/run_coverage_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
help="Pytest marker to identify the tests to run",
default="all",
)
parser.add_argument("-n", help="Pytest number of process to run the tests", default="15")
parser.add_argument("-n", help="Pytest number of process to run the tests", default="auto")
parser.add_argument(
"--model-name",
help="The model file name to run the tests",
Expand Down Expand Up @@ -71,8 +71,6 @@
pytest_command += [
"-n",
args.n,
"--dist",
"loadgroup",
"--log-level=info",
"--log-format=%(asctime)s %(levelname)s %(message)s",
"--log-date-format=[%Y-%m-%d %H:%M:%S]",
Expand Down

0 comments on commit 8a6b456

Please sign in to comment.