Skip to content

Commit

Permalink
[workflow] fixed trigger condition for 8-gpu unit test (#1323)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankLeeeee authored Jul 15, 2022
1 parent e8acf55 commit 4d5dbf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_gpu_8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4d5dbf4

Please sign in to comment.