From 45a635094f1b9a2443fc999bd36edf36a15773cf Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Wed, 13 Nov 2024 15:16:38 +0100 Subject: [PATCH] add small tests --- .github/workflows/small_test_arm64.yml | 26 +++++++++++++++++++ .../versionmanagement/SupportedVersions.java | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/small_test_arm64.yml diff --git a/.github/workflows/small_test_arm64.yml b/.github/workflows/small_test_arm64.yml new file mode 100644 index 00000000..31a46962 --- /dev/null +++ b/.github/workflows/small_test_arm64.yml @@ -0,0 +1,26 @@ +name: TEst arm64 +on: + push: + branches: + - main +jobs: + run: + runs-on: macos-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + distribution: 'zulu' # See 'Supported distributions' for available options + java-version: '11' + - name: Build with Maven + run: mvn clean install + + - name: Generate Classpath (Unix) + if: runner.os != 'Windows' + run: echo "CLASSPATH=$(mvn -q exec:exec -Dexec.executable=echo -Dexec.args='%classpath')" >> $GITHUB_ENV + + - name: Run ExampleLoadAndRunAllBmzModels.java (Unix) + if: runner.os != 'Windows' + run: java -cp $CLASSPATH:target/classes io.bioimage.modelrunner.versionmanagement.SupportedVersions diff --git a/src/main/java/io/bioimage/modelrunner/versionmanagement/SupportedVersions.java b/src/main/java/io/bioimage/modelrunner/versionmanagement/SupportedVersions.java index 23d461d9..42210141 100644 --- a/src/main/java/io/bioimage/modelrunner/versionmanagement/SupportedVersions.java +++ b/src/main/java/io/bioimage/modelrunner/versionmanagement/SupportedVersions.java @@ -70,6 +70,8 @@ public class SupportedVersions * not used */ public static void main(String[] args) { + new SupportedVersions( "tensorflow_saved_model_bundle" ); + /* String vv = getClosestSupportedPythonVersion("tensorflow", "2.13.0"); String v1 = getClosestSupportedPythonVersion("tensorflow", "2"); String v2 = getClosestSupportedPythonVersion("tensorflow", "2.8"); @@ -79,6 +81,7 @@ public static void main(String[] args) { String v7 = getClosestSupportedPythonVersion("onnx", "20"); String v8 = getClosestSupportedPythonVersion("onnx", "13"); System.out.print(false); + */ } /**