Updates and fixes for the lib
This commit is contained in:
parent
1cac1a9c13
commit
b49bad6db2
3 changed files with 13 additions and 0 deletions
4
.github/workflows/test_common.yml
vendored
4
.github/workflows/test_common.yml
vendored
|
|
@ -72,6 +72,10 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: poetry install --no-interaction
|
||||
|
||||
|
||||
- name: Run tests
|
||||
run: poetry run pytest tests/
|
||||
|
||||
# - name: Build with Poetry
|
||||
# run: poetry build
|
||||
#
|
||||
|
|
|
|||
2
pytest.ini
Normal file
2
pytest.ini
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[pytest]
|
||||
addopts = tests/
|
||||
7
tests/import_test.py
Normal file
7
tests/import_test.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
def test_import_cognee():
|
||||
try:
|
||||
import cognee
|
||||
assert True # Pass the test if no error occurs
|
||||
except ImportError as e:
|
||||
assert False, f"Failed to import cognee: {e}"
|
||||
Loading…
Add table
Reference in a new issue