Skip to content

Commit

Permalink
add small tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Nov 13, 2024
1 parent e07324a commit 45a6350
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/small_test_arm64.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -79,6 +81,7 @@ public static void main(String[] args) {
String v7 = getClosestSupportedPythonVersion("onnx", "20");
String v8 = getClosestSupportedPythonVersion("onnx", "13");
System.out.print(false);
*/
}

/**
Expand Down

0 comments on commit 45a6350

Please sign in to comment.