From ae2dcf88edd2ddf297585540370e156b41706d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 19 Mar 2024 15:23:09 -0700 Subject: [PATCH] github: use virtual environment --- .github/workflows/tests.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4ba5eafec..5de8faee6 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -33,14 +33,18 @@ jobs: path: .venv - name: Install system packages run: sudo apt-get install -y portaudio19-dev - - name: Install basic dependencies + - name: Setup virtual environment + run: | + python -m venv .venv + source .venv/bin/activate + - name: Install basic Python dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Build project run: | python -m build - - name: Install project and other dependencies + - name: Install project and other Python dependencies run: | pip install --editable . - name: Test with pytest