Skip to content

Commit 65ea7f5

Browse files
authored
Merge pull request #790 from parea-ai/fix-python-38-support
chore: trigger error
2 parents 8a551c5 + d647bad commit 65ea7f5

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [ "3.9" ]
10+
python-version: [ "3.8" ]
1111

1212
steps:
1313
- uses: actions/[email protected]
@@ -33,9 +33,9 @@ jobs:
3333
run: |
3434
make check-codestyle
3535
36-
# - name: Run tests
37-
# run: |
38-
# make test
36+
- name: Run tests
37+
run: |
38+
make test
3939
4040
# - name: Run safety checks
4141
# run: |

parea/schemas/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Completion:
1919
end_user_identifier: Optional[str] = None
2020
deployment_id: Optional[str] = None
2121
name: Optional[str] = None
22-
metadata: Optional[dict] = None
22+
metadata: Optional[Dict] = None
2323
tags: Optional[List[str]] = field(factory=list)
2424
target: Optional[str] = None
2525
cache: bool = True
@@ -349,7 +349,7 @@ class ExperimentWithPinnedStatsSchema:
349349
status: ExperimentStatus
350350
is_public: bool = False
351351
metadata: Optional[Dict[str, str]] = None
352-
pinned_stats: list[ExperimentPinnedStatistic] = []
352+
pinned_stats: List[ExperimentPinnedStatistic] = []
353353
num_samples: Optional[int] = None
354354

355355

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api"
66
[tool.poetry]
77
name = "parea-ai"
88
packages = [{ include = "parea" }]
9-
version = "0.2.137"
9+
version = "0.2.138"
1010
description = "Parea python sdk"
1111
readme = "README.md"
1212
authors = ["joel-parea-ai <[email protected]>"]

tests/test_import.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import importlib
2+
import pkgutil
3+
4+
import pytest
5+
6+
7+
def test_imports():
8+
try:
9+
package = importlib.import_module("parea")
10+
for _, module_name, _ in pkgutil.iter_modules(package.__path__):
11+
importlib.import_module(f"parea.{module_name}")
12+
except ImportError:
13+
pytest.fail("Import failed", pytrace=False)

0 commit comments

Comments
 (0)