File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -227,10 +227,10 @@ jobs:
227
227
# Check if specific test exists
228
228
if [ -n "$pattern_dir" ]; then
229
229
test_path="tests/${pattern_dir}/test_${module_name}.py"
230
- echo " python -c \"import os.path; test_path=' ${test_path}'; exists=os.path.exists(test_path); print(f' Test file {test_path} exists: {exists}'); exit(0 if exists else 1) \" && pytest -xvs --cov=patterns --cov-append ${test_path}" >> tox_pr.ini || true
230
+ echo " if [ -f \"${test_path}\" ]; then echo \" Test file $ {test_path} exists: true \" && pytest -xvs --cov=patterns --cov-append ${test_path}; else echo \"Test file ${test_path} exists: false\"; fi" >> tox_pr.ini
231
231
232
232
# Also try to find any test that might include this module
233
- echo " pytest -xvs --cov-config=.coveragerc --cov=main --cov-append tests/${pattern_dir}/ -k \"${module_name}\" --no-header" >> tox_pr.ini
233
+ echo " pytest -xvs --cov=patterns --cov-append tests/${pattern_dir}/ -k \"${module_name}\" --no-header" >> tox_pr.ini
234
234
fi
235
235
236
236
# Run doctests for the file
You can’t perform that action at this time.
0 commit comments