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 uses: actions/checkout@v4
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2000 fetch-depth: 0
show-progress: false show-progress: false
- name: Install extra packages - name: Install extra packages

View File

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