check out whole history
This commit is contained in:
2
.github/workflows/quick-regression.yml
vendored
2
.github/workflows/quick-regression.yml
vendored
@ -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
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user