Skip to content

Commit 2c3ce42

Browse files
committed
Force virtual env for unit tests
1 parent 17afb07 commit 2c3ce42

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/unit-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,18 @@ jobs:
3333
python-version: "3.8"
3434
- name: Install dependencies
3535
run: |
36+
python -m venv .venv
37+
source .venv/bin/activate
3638
make requirements
3739
- name: Build packages
3840
run: |
3941
make package
4042
- name: Run tests
4143
run: |
44+
source .venv/bin/activate
4245
pip install -e .
4346
make coverage
4447
- name: Check docs
4548
run: |
49+
source .venv/bin/activate
4650
make docs

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: requirements
22
requirements:
3-
python3 -m pip install -r requirements/development.txt ${req_args}
3+
python -m pip install -r requirements/development.txt ${req_args}
44

55
.PHONY: check
66
check:

0 commit comments

Comments
 (0)