Spaces:
Paused
Paused
Mirrowel
commited on
Commit
·
3f0dfa0
1
Parent(s):
54cc4c2
ci(build): 🎡 activate virtualenv before running build script
Browse filesEnsure the build job activates the repository virtual environment before invoking src/proxy_app/build.py. This guarantees the correct Python interpreter and installed dependencies (e.g., PyInstaller) are available across runner environments by attempting .venv/bin/activate then .venv/Scripts/activate.
.github/workflows/build.yml
CHANGED
|
@@ -71,7 +71,10 @@ jobs:
|
|
| 71 |
${{ runner.os }}-pyinstaller-3.12-
|
| 72 |
|
| 73 |
- name: Build executable
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
- name: Ensure PyInstaller cache directory exists
|
| 77 |
shell: pwsh
|
|
|
|
| 71 |
${{ runner.os }}-pyinstaller-3.12-
|
| 72 |
|
| 73 |
- name: Build executable
|
| 74 |
+
shell: bash
|
| 75 |
+
run: |
|
| 76 |
+
source .venv/bin/activate || . .venv/Scripts/activate
|
| 77 |
+
python src/proxy_app/build.py
|
| 78 |
|
| 79 |
- name: Ensure PyInstaller cache directory exists
|
| 80 |
shell: pwsh
|