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 17, 2024
1 parent 747dee4 commit 718d5df
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
- name: Run codespell
run : uv run codespell .

setup-bonsai:
setup-dotnet-tools:
runs-on: windows-latest
name: Setup Bonsai
name: Setup .NET Core SDK
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core SDK
Expand All @@ -45,14 +45,27 @@ jobs:
dotnet-version: 7.x
- name: Restore dotnet tools
run: dotnet tool restore

setup-bonsai:
runs-on: windows-latest
name: Setup Bonsai
steps:
- uses: actions/checkout@v4

- name: setup dotnet tools
uses: setup-dotnet-tools

- 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 +76,16 @@ jobs:
python-version: ['3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Download Bonsai Files
- 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 718d5df

Please sign in to comment.