check out whole history

This commit is contained in:
Axel Kohlmeyer
2024-08-22 16:23:57 -04:00
parent 1c5c3b41a9
commit 613e053373
2 changed files with 3 additions and 5 deletions

View File

@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2000
fetch-depth: 0
show-progress: false
- name: Install extra packages

View File

@ -238,7 +238,6 @@ def get_examples_using_styles(regex, examples='examples'):
rtype: list of strings
"""
print("type ", type(regex))
commands = re.compile(regex)
inputs = []
for filename in Path(examples).rglob('in.*'):
@ -257,9 +256,8 @@ if __name__ == "__main__":
headers = changed_files_from_git('develop')
print("headers\n", headers)
styles = get_command_from_header(headers, LAMMPS_DIR)
print("styles\n", styles)
regex = make_regex(styles)
print("regex: ", regex)
if regex:
inputs = get_examples_using_styles(regex, os.path.join(LAMMPS_DIR,'examples'))
print("Suggested inputs for testing:")