7575 if : ${{ !cancelled() }}
7676 run : |
7777 pip install defusedxml==0.7.1
78- python .github/scripts/pytest_md_summary.py pytest-results.xml >> $GITHUB_STEP_SUMMARY
78+ python .github/scripts/pytest_md_summary.py pytest-results.xml >> " $GITHUB_STEP_SUMMARY"
7979
8080 examples-cuda :
8181 name : Test examples CUDA [${{ matrix.group }}/1]
@@ -145,7 +145,7 @@ jobs:
145145 if : ${{ !cancelled() }}
146146 run : |
147147 pip install defusedxml==0.7.1
148- python .github/scripts/pytest_md_summary.py pytest-results.xml >> $GITHUB_STEP_SUMMARY
148+ python .github/scripts/pytest_md_summary.py pytest-results.xml >> " $GITHUB_STEP_SUMMARY"
149149
150150 examples-win-cpu :
151151 timeout-minutes : 80
@@ -183,9 +183,14 @@ jobs:
183183 - name : Run examples test scope
184184 run : |
185185 set +e
186- export LIB="${LIB};$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")"
187- export LIB="${LIB};$(python -c "import sys; print(sys.prefix + '/libs')")"
188- export INCLUDE="${INCLUDE};$(python -c "import sysconfig; print(sysconfig.get_path('include'))")"
186+
187+ sys_lib="$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")"
188+ prefix_lib="$(python -c "import sys; print(sys.prefix + '/libs')")"
189+ include_dir="$(python -c "import sysconfig; print(sysconfig.get_path('include'))")"
190+
191+ export LIB="${LIB};${sys_lib};${prefix_lib}"
192+ export INCLUDE="${INCLUDE};${include_dir}"
193+
189194 python -m pytest -s -ra tests/cross_fw/examples \
190195 -m 'not cuda' \
191196 --junit-xml=pytest-results.xml \
@@ -194,7 +199,7 @@ jobs:
194199 --splits 6 \
195200 --group ${{ matrix.group }} \
196201 ${{ github.event.inputs.pytest_args || '' }}
197- ret=$?
202+ ret="$?"
198203 [ $ret -eq 5 ] && [ -n "${{ github.event.inputs.pytest_args || '' }}" ] && exit 0 || exit $ret
199204 env :
200205 TQDM_DISABLE : 1
@@ -203,4 +208,4 @@ jobs:
203208 if : ${{ !cancelled() }}
204209 run : |
205210 pip install defusedxml==0.7.1
206- python .github/scripts/pytest_md_summary.py pytest-results.xml >> $GITHUB_STEP_SUMMARY
211+ python .github/scripts/pytest_md_summary.py pytest-results.xml >> " $GITHUB_STEP_SUMMARY"
0 commit comments