Skip to content

Commit

Permalink
Run dotnet restore on each job
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-f-cruz committed Nov 18, 2024
1 parent 747dee4 commit 38b27ed
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,26 @@ jobs:
name: Setup Bonsai
steps:
- uses: actions/checkout@v4

- name: Setup .NET Core SDK
uses: actions/[email protected]
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 }}
Expand All @@ -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/[email protected]
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:
Expand Down

0 comments on commit 38b27ed

Please sign in to comment.