github: use virtual environment
This commit is contained in:
8
.github/workflows/tests.yaml
vendored
8
.github/workflows/tests.yaml
vendored
@@ -33,14 +33,18 @@ jobs:
|
|||||||
path: .venv
|
path: .venv
|
||||||
- name: Install system packages
|
- name: Install system packages
|
||||||
run: sudo apt-get install -y portaudio19-dev
|
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: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: |
|
run: |
|
||||||
python -m build
|
python -m build
|
||||||
- name: Install project and other dependencies
|
- name: Install project and other Python dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install --editable .
|
pip install --editable .
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
|
|||||||
Reference in New Issue
Block a user