Skip to content

Commit 28bb5a6

Browse files
committed
revert version change
use powershell for windows instead of bash
1 parent 6059e09 commit 28bb5a6

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727
muse2_exe: muse2
2828

2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
3131

32-
- uses: astral-sh/setup-uv@v5
32+
- uses: astral-sh/setup-uv@v7
3333
with:
3434
enable-cache: true
3535
prune-cache: false
36+
activate-environment: true
3637
python-version: ${{ matrix.python-version }}
3738

3839
- name: Install dependencies
@@ -46,7 +47,7 @@ jobs:
4647
run: |
4748
TAG=$(curl -sSf \
4849
-H "Accept: application/vnd.github+json" \
49-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
50+
-H "Authorization: Bearer ${{ github.token }}" \
5051
https://api.github.com/repos/EnergySystemsModellingLab/MUSE2/releases/latest \
5152
| jq -r '.tag_name')
5253
@@ -87,7 +88,8 @@ jobs:
8788
echo "MUSE2_PATH=$exePath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
8889
8990
# Confirm the muse2 executable is present and the environment variable is set correctly.
90-
- name: Verify MUSE2 installation
91+
- name: Verify MUSE2 installation (Linux / macOS)
92+
if: runner.os == 'Linux' || runner.os == 'macOS'
9193
shell: bash
9294
run: |
9395
if [[ ! -f "$MUSE2_PATH" ]]; then
@@ -96,6 +98,16 @@ jobs:
9698
fi
9799
echo "MUSE2_PATH is set to: $MUSE2_PATH"
98100
101+
- name: Verify MUSE2 installation (Windows)
102+
if: runner.os == 'Windows'
103+
shell: pwsh
104+
run: |
105+
if (-not (Test-Path -Path $env:MUSE2_PATH -PathType Leaf)) {
106+
Write-Error "MUSE2 executable not found at: $env:MUSE2_PATH"
107+
exit 1
108+
}
109+
Write-Host "MUSE2_PATH is set to: $env:MUSE2_PATH"
110+
99111
- name: Run mypy
100112
run: mypy .
101113

0 commit comments

Comments
 (0)