Skip to content

Commit 84a69a2

Browse files
committed
Use venv for wheel build
1 parent 54a9688 commit 84a69a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ jobs:
6767
add-apt-repository -y ppa:deadsnakes/ppa
6868
apt-get update
6969
apt-get install -y python${{ matrix.python-version }} python${{ matrix.python-version }}-venv python${{ matrix.python-version }}-dev
70-
python${{ matrix.python-version }} -m ensurepip --upgrade
71-
python${{ matrix.python-version }} -m pip install --upgrade pip build wheel setuptools
7270
7371
- name: Build wheel
74-
run: python${{ matrix.python-version }} -m build --wheel --outdir dist/
72+
run: |
73+
python${{ matrix.python-version }} -m venv .venv
74+
.venv/bin/pip install --upgrade pip build wheel setuptools
75+
.venv/bin/python -m build --wheel --outdir dist/
7576
7677
- name: Upload wheel artifact
7778
uses: actions/upload-artifact@v5

0 commit comments

Comments
 (0)