Skip to content

Commit

Permalink
Check settings for Windows.
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Zhang <jiz@microsoft.com>
  • Loading branch information
fatcat-z committed Jun 25, 2024
1 parent a2a665b commit 62d4943
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/actions/unit_test_run/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ runs:
chmod +x ./tests/utils/setup_test_env.sh
./tests/utils/setup_test_env.sh ${{ inputs.tf_version }} ${{ inputs.ort_version }} ${{ inputs.onnx_version }}
- name: Fix Paths (Windows only)
shell: cmd
if: runner.os == 'Windows'
run: |
$site_dir = python -c "import site; print(site.getsitepackages()[1])"
echo "##vso[task.prependpath]$site_dir\numpy\.libs"
$base_dir = python -c "import site; print(site.getsitepackages()[0])"
echo "##vso[task.prependpath]$base_dir/Library/bin"
# - name: Fix Paths (Windows only)
# shell: cmd
# if: runner.os == 'Windows'
# run: |
# $site_dir = python -c "import site; print(site.getsitepackages()[1])"
# echo "##vso[task.prependpath]$site_dir\numpy\.libs"
# $base_dir = python -c "import site; print(site.getsitepackages()[0])"
# echo "##vso[task.prependpath]$base_dir/Library/bin"

- name: Run unit_test (Linux)
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
name:
- 'py39-tf2.10'
- 'py39-tf2.15'
os: ['ubuntu-latest', 'windows-2022']
os: ['windows-2022']
opset_version: ['18', '15']
ort_version: ['1.16.3']
onnx_version: ['1.16.1']
Expand Down

0 comments on commit 62d4943

Please sign in to comment.