diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index ba35f6e..799207a 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -72,6 +72,17 @@ jobs: uses: foundry-rs/foundry-toolchain@v1 with: version: v1.7.1 + + - name: Create Anvil CMD shim on Windows + if: runner.os == 'Windows' + shell: pwsh + run: | + $anvil = (Get-Command anvil).Source + $shimDir = Join-Path $env:RUNNER_TEMP 'anvil-shim' + New-Item -ItemType Directory -Force -Path $shimDir | Out-Null + $shimPath = Join-Path $shimDir 'anvil.cmd' + ('"{0}" %*' -f $anvil) | Set-Content -Encoding ASCII -Path $shimPath + $shimDir | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - name: Install Dependencies run: poetry install