File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change @@ -172,3 +172,4 @@ docs/schemas
172172# Added by cargo
173173
174174/target
175+ /packages /python /src /lcax /lcax /
Original file line number Diff line number Diff 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)
3838python-source = " packages/python/src"
39+
40+ [tool .pytest .ini_options ]
41+ pythonpath = " packages/python/src"
42+ testpaths = [" packages/python/tests/" ]
You can’t perform that action at this time.
0 commit comments