From 7c792461c8e4e4f1f8734fed143630c74e76b27f Mon Sep 17 00:00:00 2001 From: zitian-gao Date: Tue, 27 May 2025 16:45:31 +0800 Subject: init eval --- .../evaluation/latex2sympy/scripts/pre-push | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 Qwen2.5-Eval/evaluation/latex2sympy/scripts/pre-push (limited to 'Qwen2.5-Eval/evaluation/latex2sympy/scripts/pre-push') diff --git a/Qwen2.5-Eval/evaluation/latex2sympy/scripts/pre-push b/Qwen2.5-Eval/evaluation/latex2sympy/scripts/pre-push new file mode 100755 index 0000000..123ce64 --- /dev/null +++ b/Qwen2.5-Eval/evaluation/latex2sympy/scripts/pre-push @@ -0,0 +1,28 @@ +#!/bin/sh + +# Get relative path of the root directory of the project +rdir=`git rev-parse --git-dir` +rel_path="$(dirname "$rdir")" + +# Change to that path and run the file +cd $rel_path + +echo "pre-push hook started..." + +# Activate virtual environment +echo "activating venv..." +if test -f .env/bin/activate +then source .env/bin/activate && echo "venv activated." +elif test -f .env/Scripts/activate +then source .env/Scripts/activate && echo "venv activated." +else exit 1 +fi + +# Run unit tests +echo "starting tests..." +# if pytest tests +# then echo "tests finished." +# else exit 1 +# fi + +exit 0 -- cgit v1.2.3