Skip to content

Commit 9268be1

Browse files
committed
fix: corrected pydantic location
1 parent 3475302 commit 9268be1

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.github/workflows/publish_python.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/download-artifact@v3
2020
with:
2121
name: pydantic-schema
22-
path: packages/python/src/lcax/pydantic.py
22+
path: packages/python/src/lcax
2323

2424
- name: Set up Python
2525
uses: actions/setup-python@v4
@@ -30,6 +30,12 @@ jobs:
3030
- name: Install Dependencies
3131
run: |
3232
pip install maturin virtualenv
33+
virtualenv venv
34+
source venv/bin/activate
35+
maturin develop --extras tests --target x86_64-unknown-linux-gnu
36+
37+
- name: Run Tests
38+
run: pytest .
3339

3440
- name: Publish to PyPI
3541
uses: PyO3/maturin-action@v1

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,4 @@ docs/schemas
172172
# Added by cargo
173173

174174
/target
175+
/packages/python/src/lcax/lcax/

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ build-backend = "maturin"
3636
[tool.maturin]
3737
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
3838
python-source = "packages/python/src"
39+
40+
[tool.pytest.ini_options]
41+
pythonpath = "packages/python/src"
42+
testpaths = ["packages/python/tests/"]

0 commit comments

Comments
 (0)