From f01aba1abf3130c92991c6068e5020d85ebeb066 Mon Sep 17 00:00:00 2001 From: Curve Date: Sat, 16 Mar 2024 23:53:21 +0100 Subject: [PATCH] fix(workflow/python): venv on windows --- .github/workflows/python.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 8fe000ea..100aaea6 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -28,11 +28,19 @@ jobs: install-vtk: false container: ${{ matrix.os }} - - name: 🐍 Build Python Module + - name: 🐍 Build Python Module (Linux) + if: ${{ matrix.os != 'windows-latest' }} run: | python3 -m venv venv ./venv/bin/pip install . + - name: 🐍 Build Python Module (Windows) + if: ${{ matrix.os == 'windows-latest' }} + run: | + python3 -m venv venv + ./venv/Scripts/activate.bat + pip install . + - name: 📦 Upload Artifact if: ${{ matrix.config == 'Release' }} uses: actions/upload-artifact@v3