From 789b1cb4eb5f5a824eeb24318d87f86e9956d0e0 Mon Sep 17 00:00:00 2001 From: ramiz khaled Date: Fri, 27 Mar 2026 15:11:57 +0100 Subject: [PATCH 1/7] fix env used --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db30c05..d71830e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: with: miniconda-version: "latest" environment-file: environment.yaml - activate-environment: test + activate-environment: reservoir # Install testing dependencies - name: Install testing dependencies From e291aadd864fc818c6561f81043ae2adad091839 Mon Sep 17 00:00:00 2001 From: ramiz khaled Date: Fri, 27 Mar 2026 16:56:27 +0100 Subject: [PATCH 2/7] fix test.yml --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d71830e..2cdca0d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,8 @@ jobs: miniconda-version: "latest" environment-file: environment.yaml activate-environment: reservoir + auto-activate-base: false + use-mamba: true # Install testing dependencies - name: Install testing dependencies From 8f7bdf6428d83b788d9917340ac83d1cb22ca6ab Mon Sep 17 00:00:00 2001 From: ramiz khaled Date: Fri, 27 Mar 2026 17:00:26 +0100 Subject: [PATCH 3/7] fix test only for predict --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2cdca0d..9c0caaa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,4 +42,4 @@ jobs: # Run tests - name: Run tests with pytest run: | - python -m pytest -v tests/ + python -m pytest -v tests/test_predict.py From fbadb0018661fad8aa976f088a7b5c67a567796c Mon Sep 17 00:00:00 2001 From: ramiz khaled Date: Fri, 27 Mar 2026 17:05:38 +0100 Subject: [PATCH 4/7] fix testing --- .github/workflows/test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c0caaa..703a6dc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,8 +31,6 @@ jobs: miniconda-version: "latest" environment-file: environment.yaml activate-environment: reservoir - auto-activate-base: false - use-mamba: true # Install testing dependencies - name: Install testing dependencies From 4c8002c55551319be7aa8acd83fba64f51e0055a Mon Sep 17 00:00:00 2001 From: ramiz khaled Date: Mon, 30 Mar 2026 11:40:20 +0200 Subject: [PATCH 5/7] fix: tenserflow --> 2.4.1 & lint in main --- amn/__main__.py | 2 +- environment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/amn/__main__.py b/amn/__main__.py index e496d81..6853b48 100644 --- a/amn/__main__.py +++ b/amn/__main__.py @@ -234,7 +234,7 @@ def pred_amn (argv=None): if len(extracted_model) != 1: raise FileNotFoundError(f"Expected exactly one .h5 file, found {len(extracted_model)}") if len(extracted_cobra) != 1: - raise FileNotFoundError(f"Expected exactly one .h5 file, found {len(extracted_cobra)}") + raise FileNotFoundError(f"Expected exactly one .xlm file, found {len(extracted_cobra)}") # Call prediction using extracted files diff --git a/environment.yaml b/environment.yaml index 4b3690d..567a85f 100644 --- a/environment.yaml +++ b/environment.yaml @@ -16,6 +16,6 @@ dependencies: - typing_extensions =4.5.0 - pip - ipykernel - - tensorflow =2.13.0 + - tensorflow =2.4.1 - tensorflow-probability - importlib-resources \ No newline at end of file From 6d30b272d25fdc32899e4c853fb6da5dee8af638 Mon Sep 17 00:00:00 2001 From: ramiz khaled Date: Mon, 30 Mar 2026 11:48:26 +0200 Subject: [PATCH 6/7] fix numpy version --- environment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yaml b/environment.yaml index 567a85f..8a765d8 100644 --- a/environment.yaml +++ b/environment.yaml @@ -5,7 +5,7 @@ channels: dependencies: - python =3.8 - - numpy + - numpy =1.23.5 - pandas - matplotlib - scikit-learn From ad7964da78c3c722580998dab323ff4b44f0bedd Mon Sep 17 00:00:00 2001 From: ramiz khaled Date: Mon, 30 Mar 2026 11:58:35 +0200 Subject: [PATCH 7/7] test on only ubuntu --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 703a6dc..aa9aaee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - os: ["ubuntu", "windows"] + os: ["ubuntu"] defaults: run: shell: bash -l {0}