Skip to content

Commit f3baf59

Browse files
committed
fix action
1 parent a98b00e commit f3baf59

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,16 @@ jobs:
8181
${{ steps.sofa.outputs.python_exe }} -m pip install mypy
8282
8383
#Setup env
84-
echo "PYTHONPATH=$WORKSPACE_ARTIFACT_PATH/lib/python3/site-packages" | tee -a $GITHUB_ENV
85-
84+
OLD_PYTHONPATH=$PYTHONPATH
85+
echo "PYTHONPATH=$WORKSPACE_INSTALL_PATH/lib/python3/site-packages" | tee -a $GITHUB_ENV
86+
87+
8688
#For now use pybind11. This might be parametrized as an input of this action
87-
${{ steps.sofa.outputs.python_exe }} ${{ env.WORKSPACE_SRC_PATH }}/scripts/generate_stubs.py -d /home/paul/dev/build/sofa/lib/python3/site-packages -m Sofa --use_pybind11
89+
${{ steps.sofa.outputs.python_exe }} ${{ env.WORKSPACE_SRC_PATH }}/scripts/generate_stubs.py -d $WORKSPACE_INSTALL_PATH/lib/python3/site-packages -m Sofa --use_pybind11
90+
91+
#Go back to previous env
92+
echo "PYTHONPATH=$OLD_PYTHONPATH" | tee -a $GITHUB_ENV
93+
8894
8995
9096
- name: Set env vars for artifacts

0 commit comments

Comments
 (0)