Skip to content

Commit 09b2e42

Browse files
committed
Rewrote check.
1 parent b9a9c02 commit 09b2e42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/lint_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ jobs:
227227
# Check if specific test exists
228228
if [ -n "$pattern_dir" ]; then
229229
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
231231
232232
# 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
234234
fi
235235
236236
# Run doctests for the file

0 commit comments

Comments
 (0)