From 38b27ed68ad579b363d6bcbd765a06a5dbf863ef Mon Sep 17 00:00:00 2001 From: bruno-f-cruz <7049351+bruno-f-cruz@users.noreply.github.com> Date: Sun, 17 Nov 2024 16:51:47 -0800 Subject: [PATCH] Run dotnet restore on each job --- .github/workflows/ci.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 181257c..3a4af20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,20 +39,26 @@ jobs: name: Setup Bonsai steps: - uses: actions/checkout@v4 + - name: Setup .NET Core SDK uses: actions/setup-dotnet@v4.0.0 with: - dotnet-version: 7.x + dotnet-version: 8.x + - name: Restore dotnet tools run: dotnet tool restore + - name: Setup Bonsai working-directory: bonsai run: .\Setup.ps1 + - name: Upload Bonsai Files uses: actions/upload-artifact@v3 with: - name: bonsai-files + name: bonsai-environment path: bonsai + + tests: runs-on: windows-latest name: Testing ${{ matrix.python-version }} @@ -63,20 +69,25 @@ jobs: python-version: ['3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 - - name: Download Bonsai Files + + - name: Setup .NET Core SDK + uses: actions/setup-dotnet@v4.0.0 + with: + dotnet-version: 8.x + + - name: Restore dotnet tools + run: dotnet tool restore + + - name: Download Bonsai artifact uses: actions/download-artifact@v3 with: - name: bonsai-files - path: bonsai-files + name: bonsai-environment + path: bonsai-environment - name: Remove and Move Bonsai Files run: | Remove-Item -Recurse -Force bonsai\* - move bonsai-files\* bonsai - - - name: Add .NET tools to PATH - run: | - $env:PATH += ";C:\Users\runner\.dotnet\tools" + move bonsai-environment\* bonsai - uses: astral-sh/setup-uv@v3 with: