Skip to content

Commit ce56462

Browse files
authored
Activate OnnxTransform unit tests for MacOS (#2695)
* Update tests to run on mac ci leg * Updated OnnxRuntime version to 0.3.0 * Update OnnxTheory Attribute
1 parent c8a4c7d commit ce56462

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build/Dependencies.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PropertyGroup>
1515
<GoogleProtobufPackageVersion>3.5.1</GoogleProtobufPackageVersion>
1616
<LightGBMPackageVersion>2.2.3</LightGBMPackageVersion>
17-
<MicrosoftMLOnnxRuntimePackageVersion>0.2.1</MicrosoftMLOnnxRuntimePackageVersion>
17+
<MicrosoftMLOnnxRuntimePackageVersion>0.3.0</MicrosoftMLOnnxRuntimePackageVersion>
1818
<MlNetMklDepsPackageVersion>0.0.0.9</MlNetMklDepsPackageVersion>
1919
<ParquetDotNetPackageVersion>2.1.3</ParquetDotNetPackageVersion>
2020
<SystemDrawingCommonPackageVersion>4.5.0</SystemDrawingCommonPackageVersion>

test/Microsoft.ML.TestFramework/Attributes/OnnxFactAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public OnnxFactAttribute() : base("Onnx is 64-bit Windows only")
1919
/// <inheritdoc />
2020
protected override bool IsEnvironmentSupported()
2121
{
22-
return Environment.Is64BitProcess && (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || AttributeHelpers.CheckLibcVersionGreaterThanMinimum(new Version(2, 23)));
22+
return Environment.Is64BitProcess && (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || AttributeHelpers.CheckLibcVersionGreaterThanMinimum(new Version(2, 23)));
2323
}
2424
}
2525
}

test/Microsoft.ML.TestFramework/Attributes/OnnxTheoryAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public OnnxTheoryAttribute() : base("Onnx is 64-bit Windows only")
1919
/// <inheritdoc />
2020
protected override bool IsEnvironmentSupported()
2121
{
22-
return Environment.Is64BitProcess && (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || AttributeHelpers.CheckLibcVersionGreaterThanMinimum(new Version(2, 23)));
22+
return Environment.Is64BitProcess && (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || AttributeHelpers.CheckLibcVersionGreaterThanMinimum(new Version(2, 23)));
2323
}
2424
}
2525
}

0 commit comments

Comments
 (0)