Skip to content

Commit

Permalink
Disable paddle for non-paddle test
Browse files Browse the repository at this point in the history
  • Loading branch information
qiao-bo committed May 5, 2022
1 parent 6b6b9cd commit e889b4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/scripts/win_test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,20 @@ if ("$env:TI_WANTED_ARCHS".Contains("cuda")) {
# Fail fast, give priority to the error-prone tests
python tests/run_tests.py -vr2 -t1 -k "paddle" -a "$env:TI_WANTED_ARCHS"
if (-not $?) { exit 1 }

# Disable paddle for the remaining test
$env:TI_ENABLE_PADDLE = "0"

if ("$env:TI_WANTED_ARCHS".Contains("cuda")) {
python tests/run_tests.py -vr2 -t2 -k "not torch and not paddle" -a cuda
python tests/run_tests.py -vr2 -t4 -k "not torch and not paddle" -a cuda
if (-not $?) { exit 1 }
}
if ("$env:TI_WANTED_ARCHS".Contains("cpu")) {
python tests/run_tests.py -vr2 -t1 -k "not torch and not paddle" -a cpu
python tests/run_tests.py -vr2 -t6 -k "not torch and not paddle" -a cpu
if (-not $?) { exit 1 }
}
if ("$env:TI_WANTED_ARCHS".Contains("opengl")) {
python tests/run_tests.py -vr2 -t2 -k "not torch and not paddle" -a opengl
python tests/run_tests.py -vr2 -t4 -k "not torch and not paddle" -a opengl
if (-not $?) { exit 1 }
}
python tests/run_tests.py -vr2 -t1 -k "torch" -a "$env:TI_WANTED_ARCHS"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ jobs:
TI_SKIP_VERSION_CHECK: ON
TI_CI: 1
PYTHON: '3.7'
TI_DEVICE_MEMORY_GB: '2.0'
TI_DEVICE_MEMORY_GB: '0.7'

build_and_test_m1:
name: Build and Test (Apple M1)
Expand Down

0 comments on commit e889b4c

Please sign in to comment.