Skip to content

Commit 2037c0b

Browse files
committed
Correção CI
1 parent 4cb12d4 commit 2037c0b

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ jobs:
2525
pip install -r requirements.txt
2626
2727
- name: Run tests
28-
run: pytest -q
28+
env:
29+
PYTHONPATH: .
30+
run: python -m pytest -q

tests/test_imports.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
#Plataforma de Estudos: [DIO - Digital Innovation One]
33

44
import importlib
5+
import sys
6+
from pathlib import Path
7+
8+
9+
PROJECT_ROOT = Path(__file__).resolve().parents[1]
10+
if str(PROJECT_ROOT) not in sys.path:
11+
sys.path.insert(0, str(PROJECT_ROOT))
512

613

714
def test_import_main_entrypoint():

0 commit comments

Comments
 (0)