Skip to content

Commit d6aeec2

Browse files
committed
Switch to using a virtualenv for tests
1 parent 165a319 commit d6aeec2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
fetch-depth: 0
1717
- name: Install Python
1818
run: |
19-
dnf install -y python3 python3-pip
19+
dnf install -y python3
2020
- name: Install dependencies
2121
run: |
22-
python3 -m pip install --upgrade pip
23-
pip3 install -r requirements.txt
24-
pip3 install -r test_requirements.txt
22+
python3 -m venv /tmp/venv
23+
/tmp/venv/bin/pip install --upgrade pip
24+
/tmp/venv/bin/pip install -r requirements.txt
25+
/tmp/venv/bin/pip install -r test_requirements.txt
2526
- name: Running unit tests with pytest
2627
run: |
27-
cd aquilon/ && pytest -vv
28+
cd aquilon/ && /tmp/venv/bin/pytest -vv

0 commit comments

Comments
 (0)