Skip to content

Commit

Permalink
fix(workflow/python): venv on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Mar 16, 2024
1 parent 7b17d86 commit f01aba1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f01aba1

Please sign in to comment.