hjkim00's picture
Restore all essential files - code, configs, and MBPP/HumanEval data
24c2665 verified
# argument version
set -eux
while getopts "v:" opt; do
case $opt in
v)
version=$OPTARG
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
esac
done
if [ -z "$version" ]; then
echo "version is required"
exit 1
fi
export PYTHONPATH=$PWD pytest tests
git tag $version
# docker build
docker build . -t ganler/evalplus:$version
docker tag ganler/evalplus:$version ganler/evalplus:latest
docker push ganler/evalplus:$version
docker push ganler/evalplus:latest
rm -rf dist
python3 -m build
python3 -m twine upload dist/*
# git push
git push
git push --tags