Skip to content

Commit

Permalink
remove download from action and add to csproj
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkkirschner committed Jan 31, 2024
1 parent bd7764f commit 8dafc00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ jobs:
} else {
Write-Error "python node dll was not found!"
}
- name: Get DynamoRuntime from s3
run: |
curl -o DynamoRuntime.zip https://dyn-builds-data.s3-us-west-2.amazonaws.com/DynamoCoreRuntime3.0.2.zip
ls
- name: Extract DynamoRuntime
run: |
7z x DynamoRuntime.zip -o${{ github.workspace }}\DSIronPython\IronPythonTests\bin\Release\net8.0\DynamoRuntime
- name: Run test with the dotnet CLI
run: |
dotnet test ${{ github.workspace }}\DSIronPython -p:Configuration=Release --filter "TestCategory!=Failure" --logger "trx;LogFileName=results.trx" --results-directory ${{ github.workspace }}\DSIronPython\TestResults
Expand Down
9 changes: 6 additions & 3 deletions IronPythonTests/IronPythonTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<ItemGroup>
<PackageReference Include="DynamoVisualProgramming.Tests" Version="3.1.0-beta3940"></PackageReference>
<PackageReference Include="IronPython" Version="2.7.12" />
<PackageReference Include="DynamoVisualProgramming.Core" Version="3.1.0-beta3940">
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DSIronPython\DSIronPython.csproj" />
Expand All @@ -19,4 +17,9 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

<Target Name="DownloadDynamoAndUnzip" BeforeTargets="Build">
<DownloadFile SourceUrl="https://dyn-builds-data.s3-us-west-2.amazonaws.com/DynamoCoreRuntime_3.1.0.3952_20240131T0007.zip" DestinationFolder="$(MSBuildProjectDirectory)" />
<Unzip SourceFiles="DynamoCoreRuntime_3.1.0.3952_20240131T0007.zip" DestinationFolder="$(OutputPath)\" OverwriteReadOnlyFiles="true" />
</Target>
</Project>
2 changes: 1 addition & 1 deletion IronPythonTests/TestServices.dll.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="DynamoBasePath" value=".\DynamoRuntime"/>
<add key="DynamoBasePath" value="."/>
<add key="RequestedLibraryVersion2" value=""/>
</appSettings>
</configuration>

0 comments on commit 8dafc00

Please sign in to comment.