Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow #2

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build DSIronPython package using msbuild
name: DSIronPython-VS2022Build
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: windows-2022
Expand All @@ -13,7 +13,7 @@ jobs:
- name: Setup nuget
uses: nuget/[email protected]
- name: Setup msbuild
uses: microsoft/[email protected]
uses: microsoft/[email protected].1
- name: Nuget Restore DSIronPython solution
run: nuget restore ${{ github.workspace }}\DSIronPython\DSIronPython.sln
- name: Build DSIronPython with MSBuild
Expand All @@ -28,6 +28,18 @@ jobs:
} else {
Write-Error "python node dll was not found!"
}
- name: Test with the dotnet CLI
run: dotnet test ${{ github.workspace }}\DSIronPython

- name: Run test with the dotnet CLI
run: |
dotnet test ${{ github.workspace }}\DSIronPython --logger "trx;LogFileName=results.trx" --results-directory ${{ github.workspace }}\DSIronPython\TestResults
- name: Upload build artifact
uses: actions/[email protected]
with:
name: DSIronPython
path: ${{ github.workspace }}\DSIronPython\package_output
retention-days: 7
- name: Upload test artifact
uses: actions/[email protected]
with:
name: TestResults
path: ${{ github.workspace }}\DSIronPython\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:
- DSIronPython-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/[email protected]
with:
artifact: TestResults
name: Test Results
path: '*.trx'
reporter: dotnet-trx
3 changes: 2 additions & 1 deletion .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 Expand Up @@ -360,4 +361,4 @@ MigrationBackup/
.ionide/

# Fody - auto-generated XML schema
FodyWeavers.xsd
FodyWeavers.xsd