test publish.yml

This commit is contained in:
xaoyo 2023-11-27 11:46:00 +08:00
parent f5004b4876
commit 7c74ed6b4a

View File

@ -35,6 +35,22 @@ jobs:
run: |
python -m build
python tests/build_exe.py
- name: Get package path
run: |
package_path=$(python -c "import site; print(site.getsitepackages()[1])")
version_list_path="$package_path/pywxdump/version_list.json"
# Execute packaging command
cmd="pyinstaller --onefile --clean --add-data \"$version_list_path;pywxdump\" --distpath=dist --workpath=build --specpath=build --name=pywxdump dist/tmp.py"
echo $cmd
eval $cmd || exit 1
- name: Check package path
run: |
if [ -z "$package_path" ]; then
echo "未找到安装包路径"
exit 1
fi
- name: test
run: |