#2443 do not lock ui on simulation run #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build PR | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| env: | |
| MAJOR: 12 | |
| MINOR: 1 | |
| RUN: 9999 | |
| jobs: | |
| build-and-test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'true' | |
| - name: Add msbuild to PATH | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Restore dependencies | |
| run: | | |
| nuget sources add -username Open-Systems-Pharmacology -password ${{ secrets.GITHUB_TOKEN }} -name OSP-GitHub-Packages -source "https://nuget.pkg.github.com/Open-Systems-Pharmacology/index.json" | |
| dotnet restore | |
| - name: define env variables | |
| run: | | |
| echo "APP_VERSION=${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.RUN }}" | Out-File -FilePath $env:GITHUB_ENV -Append | |
| - name: Build | |
| run: msbuild OSPSuite.Core.sln /p:Version=${{env.APP_VERSION}} | |
| - name : Test | |
| run: dotnet test .\tests\**\bin\Debug\net472\OSPSuite*Tests.dll -v normal --no-build --logger:"html;LogFileName=../testLog_Windows.html" | |
| - name: Pack the project | |
| run: dotnet pack .\OSPSuite.Core.sln --no-build --no-restore -o ./ -p:PackageVersion=${{env.APP_VERSION}} --configuration=Debug --no-build | |
| - name: Push nupkg as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: OSPSuite.Core | |
| path: ./*.nupkg | |
| - name: Push test log as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: testLog_Windows | |
| path: ./testLog*.html |