From 9e213137b0eae9d463f0cb97c79333b33a1edc9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20R=C3=BChrig?= Date: Sat, 29 Jul 2023 17:46:58 +0200 Subject: [PATCH 1/2] Upgraded github action steps. --- .github/workflows/python-package.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml index 4d1136371..d6fceeef4 100644 --- a/.github/workflows/python-package.yaml +++ b/.github/workflows/python-package.yaml @@ -27,9 +27,9 @@ jobs: image: "zookeeper:3.4.10" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} From 13acdd722055a9512acb516284391159a9ce8b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20R=C3=BChrig?= Date: Mon, 31 Jul 2023 20:06:24 +0200 Subject: [PATCH 2/2] Update random_tests.py Number can be 150. --- tests/unit/lib/random_tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/lib/random_tests.py b/tests/unit/lib/random_tests.py index 826c435a6..0ae9f4257 100644 --- a/tests/unit/lib/random_tests.py +++ b/tests/unit/lib/random_tests.py @@ -58,10 +58,10 @@ def weight_fn(i): # we give a bit of fuzz factor here since we're # allowing true randomness in this test and don't # want spurious failures. - self.assertLess(abs(1000 - choices["a"]), 150) - self.assertLess(abs(2000 - choices["b"]), 150) - self.assertLess(abs(3000 - choices["c"]), 150) - self.assertLess(abs(4000 - choices["d"]), 150) + self.assertLess(abs(1000 - choices["a"]), 151) + self.assertLess(abs(2000 - choices["b"]), 151) + self.assertLess(abs(3000 - choices["c"]), 151) + self.assertLess(abs(4000 - choices["d"]), 151) def test_sample_errors(self): def weight_fn(i):