Skip to content

Commit 2fa596d

Browse files
Update .github/workflows for pytest
1 parent 10f42ba commit 2fa596d

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ jobs:
2828
- name: Install Python dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
pip install -r requirements.txt
31+
python -m pip install -r requirements.txt
32+
python -m pip install -e .
3233
3334
- name: Rebuild CPU kernel libraries
3435
run: |
3536
make -C kernels/bit_1/cpu clean all
3637
make -C kernels/bit_1_58/cpu clean all
3738
3839
- name: Run test suite
39-
run: pytest -q tests
40+
run: python -m pytest -q tests

conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import sys
2+
import os
3+
4+
sys.path.insert(0, os.path.dirname(__file__))

0 commit comments

Comments
 (0)