Skip to content

Commit

Permalink
[CI] fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
CSY-ModelCloud committed Dec 24, 2024
1 parent 09c7a84 commit 34e4ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ jobs:
pytest --durations=0 tests/${{ matrix.test_script }}.py || { echo "ERROR=1" >> $GITHUB_ENV; exit 1; }
execution_time=$(( $(date +%s) - start_time ))
echo "$((execution_time / 60))m $((execution_time % 60))s"
curl "http://${{ needs.check-vm.outputs.ip }}/gpu/vram?gpu=${{ CUDA_VISIBLE_DEVICES }}&range=$execution_time&unit=second"
curl "http://${{ needs.check-vm.outputs.ip }}/gpu/vram?gpu=${{ env.CUDA_VISIBLE_DEVICES }}&range=$execution_time&unit=second"
- name: Release GPU
if: always() && !contains(matrix.test_script, 'ipex')
Expand Down

0 comments on commit 34e4ff2

Please sign in to comment.