Skip to content

Commit b9a9c02

Browse files
committed
Change cov from patterns to main
1 parent bdb6c0a commit b9a9c02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/lint_pr.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -230,18 +230,18 @@ jobs:
230230
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
231231
232232
# Also try to find any test that might include this module
233-
echo " pytest -xvs --cov=patterns --cov-append tests/${pattern_dir}/ -k \"${module_name}\" --no-header" >> tox_pr.ini
233+
echo " pytest -xvs --cov-config=.coveragerc --cov=main --cov-append tests/${pattern_dir}/ -k \"${module_name}\" --no-header" >> tox_pr.ini
234234
fi
235235
236236
# Run doctests for the file
237-
echo " pytest --doctest-modules -v --cov=patterns --cov-append $file" >> tox_pr.ini
237+
echo " pytest --cov-config=.coveragerc --doctest-modules -v --cov=main --cov-append $file" >> tox_pr.ini
238238
239239
has_tests=true
240240
fi
241241
242242
# Run test files directly if modified
243243
if [[ $file == tests/* ]]; then
244-
echo " pytest -xvs --cov=patterns --cov-append $file" >> tox_pr.ini
244+
echo " pytest -xvs --cov-config=.coveragerc --cov=main --cov-append $file" >> tox_pr.ini
245245
has_tests=true
246246
fi
247247
fi

0 commit comments

Comments
 (0)