Repository: automl/random_forest_run (language: python)

Issue:
Fix issues introduced by PR #64



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index c7de194..348e337 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -4,7 +4,7 @@ name: Wheel builder
 on:
   push:
     branches:
-      - master
+      - main
       # Release branches
       - "[0-9]+.[0-9]+.X"
   create:
diff --git a/build_tools/build_wheels.sh b/build_tools/build_wheels.sh
index 29d3084..673681f 100755
--- a/build_tools/build_wheels.sh
+++ b/build_tools/build_wheels.sh
@@ -3,7 +3,7 @@
 # cibuildwheel which build the wheels in a
 # Docker image quay.io with minimal support. Following files are required
 # for the pyrfr to be compiled on the desired target
-pip3 install cmake numpy==1.11.0 scipy==0.17.0
+pip3 install cmake numpy scipy
 echo 'echo "pyuic5 $@"' > /usr/local/bin/pyuic5
 chmod +x /usr/local/bin/pyuic5
 yum install -y curl gsl-devel pcre-devel


Test patch:
diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml
index 47ff9cd..f2be8fd 100644
--- a/.github/workflows/pytest.yml
+++ b/.github/workflows/pytest.yml
@@ -4,15 +4,15 @@ on:
   # Allow to manually trigger through github API
   workflow_dispatch:
 
-  # Triggers with push to master
+  # Triggers with push to main
   push:
     branches:
-      - master
+      - main
 
-  # Triggers with push to a pr aimed at master
+  # Triggers with push to a pr aimed at main
   pull_request:
     branches:
-      - master
+      - main
 
   schedule:
     # Every day at 7AM UTC
@@ -34,7 +34,7 @@ jobs:
       uses: actions/setup-python@v2
       # A note on checkout: When checking out the repository that
       # triggered a workflow, this defaults to the reference or SHA for that event.
-      # Otherwise, uses the default branch (master) is used.
+      # Otherwise, uses the default branch (main) is used.
       with:
         python-version: ${{ matrix.python-version }}
     - name: Install test dependencies
diff --git a/tests/pyrfr_unit_test_binary_regression_forest.py b/tests/pyrfr_unit_test_binary_regression_forest.py
index 60a0001..b53a1c4 100644
--- a/tests/pyrfr_unit_test_binary_regression_forest.py
+++ b/tests/pyrfr_unit_test_binary_regression_forest.py
@@ -85,8 +85,8 @@ def test_contents(self):
 		self.forest.fit(self.data, self.rng)
 		trees = self.forest.get_all_trees()
 		self.assertEqual(len(trees), self.forest.options.num_trees)
-		self.assertAlmostEqual(trees[0].get_node(0).get_num_split_value(), -0.20652545999380345)
-		self.assertAlmostEqual(trees[1].get_node(1).get_num_split_value(), -0.8857842741236657)
+		self.assertAlmostEqual(trees[0].get_node(0).get_num_split_value(), -0.20652545999380345, 2)
+		self.assertAlmostEqual(trees[1].get_node(1).get_num_split_value(), -0.8857842741236657, 2)
 
 	def test_pickling(self):