From 5ee692585d99464e3e1cd10170d1fd95ac883d25 Mon Sep 17 00:00:00 2001 From: Jackson Burns <33505528+JacksonBurns@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:38:07 -0400 Subject: [PATCH 1/2] remove disused attribute --- test/test_performance.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/test_performance.py b/test/test_performance.py index e75d596..dc77e01 100644 --- a/test/test_performance.py +++ b/test/test_performance.py @@ -15,10 +15,6 @@ class Test_py2opsin_performance(unittest.TestCase): @classmethod def setUpClass(self): - self.jar_path = os.path.join( - os.getcwd(), - "opsin-cli-2.7.0-jar-with-dependencies.jar", - ) # list of molecules taken from IUPAC Dissociation Constants dataset # https://zenodo.org/record/7236453 self.compound_list = [ From 131a94e13de227d722988e6e579a3557b935a597 Mon Sep 17 00:00:00 2001 From: Jackson Burns Date: Mon, 8 Jul 2024 11:28:05 -0400 Subject: [PATCH 2/2] automatically retry the tests if network drops, etc --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2b364f..918bc77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,8 +57,13 @@ jobs: python -m pip install .[dev] python -m pip install coverage - name: Run Tests - run: | - coverage run --source=. --omit=py2opsin/__init__.py,setup.py,test/* -m unittest discover + uses: nick-fields/retry@v3 + with: + max_attempts: 3 + timeout_minutes: 15 + shell: bash + command: | + micromamba run -n temp coverage run --source=. --omit=py2opsin/__init__.py,setup.py,test/* -m unittest discover - name: Show Coverage run: | coverage report -m