From 19ea5bb97a5ffed08f802fb0efd71b72de79f90c Mon Sep 17 00:00:00 2001 From: BR1py Date: Thu, 4 Jul 2024 08:50:14 +0200 Subject: [PATCH] Imporved test script for actions in GIT Change Log updated --- docs/docs/changelog.rst | 45 ++++++++++++++------------------- docs/index.rst | 2 +- tests/test_itertree_base_old.py | 14 ++++++++++ 3 files changed, 34 insertions(+), 27 deletions(-) diff --git a/docs/docs/changelog.rst b/docs/docs/changelog.rst index 1869cf6..9296070 100644 --- a/docs/docs/changelog.rst +++ b/docs/docs/changelog.rst @@ -1,14 +1,17 @@ .. _changelog: - ************************************ -Version 1.1.3 +Change Log ************************************ + + +Version 1.1.3 +=============== + Bugfix added missing folder in package -************************************ Version 1.1.2 -************************************ +=============== New iteration features: @@ -18,9 +21,8 @@ Beside this the inheritence of the iTree class as a super class of another objec The test suite is enlarged. -************************************ Version 1.0.3 -************************************ +=============== This version contains minor changes related to comments and the test setup. @@ -31,16 +33,15 @@ We appended a new version of blist which can be used in python 3.10 and 3.11 env Issues #21,#22 solved. -************************************ Version 1.0.5 -************************************ +=============== + Minor bugfix (escapes). And correct issues related wrong commit in 1.0.3 -************************************ Version 1.0.3 -************************************ +=============== This version contains minor changes related to comments and the test setup. @@ -51,9 +52,8 @@ We appended a new version of blist which can be used in python 3.10 and 3.11 env Issues #21,#22 solved. -************************************ Version 1.0.1 -************************************ +=============== Full released @@ -108,9 +108,8 @@ The MIT licence was extended by a "human protect patch". To symbolize the stability and also the final fix of the interface we decided to create the first full released version. The testsuite is largely expanded for this step. -************************************ Version 0.8.2 -************************************ +=============== We reworked the itertree data module so that iData class behaves much better like a dict. All overloaded methods are improved to match the dict interface. Also `iTDataModel` is changed and is now a class that must be overloaded. @@ -139,9 +138,8 @@ official 1.0.0 release. Still Beta SW -> but release candidate! -************************************ Version 0.7.3 -************************************ +=============== Bugfixes in repr() and render() @@ -149,9 +147,8 @@ Extended examples Still Beta SW -> but release candidate! -************************************ Version 0.7.2 -************************************ +=============== Improved Interval class (dynamic limits in all levels) @@ -159,17 +156,15 @@ Adapted some tests and the documentation Still Beta SW -> but release candidate! -************************************ Version 0.7.1 -************************************ +=============== Bigger bugfix on 0.7.0 which was really not well tested! Still Beta SW -> but release candidate! -************************************ Version 0.7.0 -************************************ +=============== Recursive functions are rewritten to use an iterative approach (recursion limit exception should be avoided) @@ -183,9 +178,8 @@ Examples regarding data models added Still Beta SW -> but release candidate! -************************************ Version 0.6.0 -************************************ +=============== Improved interface and performance @@ -198,9 +192,8 @@ Examples still missing Beta SW! -************************************ Version 0.5.0 -************************************ +=============== First released version diff --git a/docs/index.rst b/docs/index.rst index e203f51..69c5000 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -11,12 +11,12 @@ :hidden: docs/docs - docs/changelog docs/tutorial docs/API docs/examples docs/comparison docs/background + docs/changelog docs/licence .. _intro: diff --git a/tests/test_itertree_base_old.py b/tests/test_itertree_base_old.py index 43bbc7b..405507c 100644 --- a/tests/test_itertree_base_old.py +++ b/tests/test_itertree_base_old.py @@ -825,6 +825,19 @@ def test10_std_save_load(self): target_path = root_data_path + '/out.itz' target_path2 = root_data_path + '/out.itr' target_path3 = root_data_path + '/out2.itz' + # to find a valid dir for GITHUB action we search a bit: + if not os.path.exists(root_data_path): + os.makedirs(root_data_path) + time.sleep(1) + if not os.path.exists(root_data_path): + root_data_path=os.path.dirname(root_data_path) + if not os.path.exists(root_data_path): + os.makedirs(root_data_path) + time.sleep(1) + if not os.path.exists(root_data_path): + root_data_path = os.path.dirname(root_data_path) + if not os.path.exists(root_data_path): + os.makedirs(root_data_path) print('Outputfile: %s' % os.path.abspath(target_path)) @@ -832,6 +845,7 @@ def test10_std_save_load(self): if np is not None: root += iTree('NUMPY', value={'myarray': np.array([1.5, 4, 3.6, 467])}) root += iTree('OD', value={'od': collections.OrderedDict([('C', 'c'), ('A', 'a'), ('B', 'b')])}) + root.dump(target_path, overwrite=True) root.dump(target_path2, pack=False, overwrite=True)