[workflow] fixed trigger condition for 8-gpu unit test (#1323)

pull/1325/head
Frank Lee 2022-07-15 15:00:02 +08:00 committed by GitHub
parent e8acf55e8b
commit 4d5dbf48a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ jobs:
- name: Unit Testing
run: |
gpu_used=$(nvidia-smi -i 0 --query-gpu=memory.used --format=csv,noheader,nounits)
[ "$gpu_used" -gt "100" ] && PYTHONPATH=$PWD pytest tests
[ "$gpu_used" -le "100" ] && PYTHONPATH=$PWD pytest tests
env:
DATA: /data/scratch/cifar-10