-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [CI] fix ci timeout * trigger full test * [CI] use subprocess to fix memory leak * [ci] bug fix * [CI] use test_run script to do fulltest * [CI] trigger full test * [CI] del unused code * [CI] del unused code * [CI] fix typo * [CI] reset fulltest wrokflow
- Loading branch information
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import subprocess | ||
import sys | ||
|
||
import glob | ||
|
||
# Function to run a test file | ||
def run_test(file): | ||
try: | ||
subprocess.run(["pytest", "-v", file], check=True) | ||
return True | ||
except subprocess.CalledProcessError: | ||
return False | ||
|
||
|
||
if __name__ == "__main__": | ||
# List of test files to run | ||
test_files = glob.glob('tests/*_test.py', recursive=True) | ||
|
||
print("Test files:") | ||
for file in test_files: | ||
print(f" - {file}") | ||
|
||
pass_flag = True | ||
for test_file in test_files: | ||
passed = run_test(test_file) | ||
pass_flag = pass_flag and passed | ||
|
||
if not pass_flag: | ||
sys.exit(1) |