ci: test demo with python 3.12

This commit is contained in:
Li Jie
2024-11-24 20:02:23 +08:00
parent b1fcae5cec
commit 56e9dab2ce

View File

@@ -129,7 +129,17 @@ jobs:
- name: Test demos - name: Test demos
continue-on-error: true continue-on-error: true
run: bash .github/workflows/test_demo.sh run: |
# TODO(lijie): force python3-embed to be linked with python-3.12-embed
# Currently, python3-embed is python-3.13-embed, doesn't work with pytorch
# Will remove this after pytorch is fixed.
pcdir=$HOME/pc
mkdir -p $pcdir
libdir=$(pkg-config --variable=libdir python-3.12-embed)
echo "libdir: $libdir"
ln -s $libdir/pkgconfig/python-3.12-embed.pc $pcdir/python3-embed.pc
export PKG_CONFIG_PATH=$pcdir
bash .github/workflows/test_demo.sh
- name: Show test result - name: Show test result
run: cat result.md run: cat result.md