File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -234,14 +234,14 @@ jobs:
234
234
fi
235
235
236
236
# Run doctests for the file
237
- echo " pytest --cov-config=.coveragerc -- doctest-modules -v --cov=main --cov-append $file" >> tox_pr.ini
237
+ echo " pytest --doctest-modules -v --cov=patterns --cov-append $file" >> tox_pr.ini
238
238
239
239
has_tests=true
240
240
fi
241
241
242
242
# Run test files directly if modified
243
243
if [[ $file == tests/* ]]; then
244
- echo " pytest -xvs --cov-config=.coveragerc --cov=main --cov-append $file" >> tox_pr.ini
244
+ echo " pytest -xvs --cov=patterns --cov-append $file" >> tox_pr.ini
245
245
has_tests=true
246
246
fi
247
247
fi
@@ -250,8 +250,8 @@ jobs:
250
250
# If we didn't find any specific tests to run, mention it
251
251
if [ "$has_tests" = false ]; then
252
252
echo " python -c \"print('No specific tests found for changed files. Consider adding tests.')\"" >> tox_pr.ini
253
- # Add a minimal test to avoid failure
254
- echo " pytest -xk \"not integration\" --no-header" >> tox_pr.ini
253
+ # Add a minimal test to avoid failure, but ensure it generates coverage data
254
+ echo " pytest -xvs --cov=patterns --cov-append -k \"not integration\" --no-header" >> tox_pr.ini
255
255
fi
256
256
257
257
# Add coverage report command
You can’t perform that action at this time.
0 commit comments