Skip to content

Commit

Permalink
up version
Browse files Browse the repository at this point in the history
published
add github actions
  • Loading branch information
mjkkirschner committed Jan 24, 2024
1 parent a43fdf3 commit 9d23bdf
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Build DSIronPython3 package using msbuild
name: DSIronPython3-VS2022Build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
path: DSIronPython3
repository: DynamoDS/DSIronPython3
- name: Setup nuget
uses: nuget/setup-nuget@v1.2
- name: Setup msbuild
uses: microsoft/setup-msbuild@v1.3.1
- name: Nuget Restore DSIronPython3 solution
run: nuget restore ${{ github.workspace }}\DSIronPython3\IronPython3Extension.sln
- name: Build DSIronPython3 with MSBuild
run: |
Write-Output "***Continue with the build, Good luck developer!***"
msbuild ${{ github.workspace }}\DSIronPython3\IronPython3Extension.sln
- name: Look for package
run: |
Write-Output "***Locating iron python package!***"
if (Test-Path -Path "${{ github.workspace }}\DSIronPython3\package_output\DSIronPython3\bin\python3eval.dll") {
Write-Output "python node dll exists!"
} else {
Write-Error "python node dll was not found!"
}
- name: Run test with the dotnet CLI
run: |
dotnet test ${{ github.workspace }}\DSIronPython3 --logger "trx;LogFileName=results.trx" --results-directory ${{ github.workspace }}\DSIronPython3\TestResults
- name: Upload build artifact
uses: actions/upload-artifact@v3.1.3
with:
name: DSIronPython3
path: ${{ github.workspace }}\DSIronPython3\package_output
retention-days: 7
- name: Upload test artifact
uses: actions/upload-artifact@v3.1.3
with:
name: TestResults
path: ${{ github.workspace }}\DSIronPython3\TestResults
retention-days: 1
25 changes: 25 additions & 0 deletions .github/workflows/publish_test_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Test Report

on:
workflow_run:
workflows:
- DSIronPython3-VS2022Build
types:
- completed

permissions:
contents: read
actions: read
checks: write

jobs:
publish_test_report:
name: Publish Test Report
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1.7.0
with:
artifact: TestResults
name: Test Results
path: '*.trx'
reporter: dotnet-trx
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ bld/
[Oo]ut/
[Ll]og/
[Ll]ogs/
package_output/

# Visual Studio 2015/2017 cache/options directory
.vs/
Expand Down
2 changes: 1 addition & 1 deletion IronPython3Extension/IronPython3Extension.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<OutputPath>$(SolutionDir)\package_output\DSIronPython3\bin\</OutputPath>

<AssemblyVersion>1.0.2</AssemblyVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions python3eval/python3eval.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<TargetFramework>net6.0</TargetFramework>
<OutputPath>$(SolutionDir)\package_output\DSIronPython3\bin\</OutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AssemblyVersion>1.0.2</AssemblyVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 9d23bdf

Please # to comment.