@@ -73,10 +73,10 @@ jobs:
7373 run : |
7474 python -m pip install --upgrade pip setuptools pyinstaller
7575 curl -sSL https://install.python-poetry.org | python3 - --version ${{ env.POETRY_VERSION }}
76- echo " C:\Users\runneradmin\AppData\Roaming\Python\Scripts" | Out-File -FilePath "$env:GITHUB_PATH" -Encoding utf8 -Append
77-
78- poetry config virtualenvs.create false
79- poetry install --no-root
76+ C:\Users\runneradmin\AppData\Roaming\Python\Scripts\poetry config virtualenvs.create false
77+ C:\Users\runneradmin\AppData\Roaming\Python\Scripts\poetry install --no-root
78+ # Updated GITHUB_PATH works on next steps, not current step somehow
79+ echo "C:\Users\runneradmin\AppData\Roaming\Python\Scripts" >> $env:GITHUB_PATH
8080
8181 # Linux-specific system dependencies
8282 - name : Install system dependencies (Linux)
@@ -117,11 +117,9 @@ jobs:
117117 run : |
118118 $filePath = 'holmes/__init__.py'
119119 (Get-Content $filePath) -replace '__version__ = .+', '__version__ = "${{ github.ref_name }}"' | Set-Content $filePath
120- shell : pwsh
121120
122121 # Build step with PyInstaller
123122 - name : Build binary with PyInstaller
124- shell : bash
125123 run : |
126124 # Customize this PyInstaller command based on your project structure
127125 pyinstaller holmes_cli.py \
@@ -141,20 +139,9 @@ jobs:
141139 --collect-data litellm
142140 ls dist/
143141
144- # Optional: Run tests
145- - name : Run tests(Unix)
146- if : ${{ !inputs.is-release }} && matrix.os != 'windows-latest'
147- shell : bash
148- env :
149- # Add your test environment variables here
150- OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
151- run : |
152- poetry run pytest -m "not llm"
153-
154142 # Optional: Run tests
155143 - name : Run tests(Windows)
156- if : ${{ !inputs.is-release }} && matrix.os == 'windows-latest'
157- shell : pwsh
144+ if : ${{ !inputs.is-release }}
158145 env :
159146 # Add your test environment variables here
160147 OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
@@ -164,7 +151,6 @@ jobs:
164151 # Test the built binary
165152 - name : Test binary (Unix)
166153 if : matrix.os != 'windows-latest'
167- shell : bash
168154 run : |
169155 dist/holmes/holmes version
170156 if [ $? -ne 0 ]; then
@@ -175,7 +161,6 @@ jobs:
175161
176162 - name : Test binary (Windows)
177163 if : matrix.os == 'windows-latest'
178- shell : pwsh
179164 run : |
180165 dist/holmes/holmes.exe version
181166 if ($LASTEXITCODE -ne 0) {
@@ -200,7 +185,6 @@ jobs:
200185 Compress-Archive -Path holmes -DestinationPath holmes-${{ matrix.os }}-${{ github.run_number }}.zip -Force
201186 Move-Item -Path holmes-${{ matrix.os }}-${{ github.run_number }}.zip -Destination ..\
202187 Set-Location -Path ..
203- shell : pwsh
204188
205189 # Upload artifacts
206190 - name : Upload build artifacts
0 commit comments