File tree 3 files changed +12
-1
lines changed
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 19
19
- uses : actions/download-artifact@v3
20
20
with :
21
21
name : pydantic-schema
22
- path : packages/python/src/lcax/pydantic.py
22
+ path : packages/python/src/lcax
23
23
24
24
- name : Set up Python
25
25
uses : actions/setup-python@v4
30
30
- name : Install Dependencies
31
31
run : |
32
32
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 .
33
39
34
40
- name : Publish to PyPI
35
41
uses : PyO3/maturin-action@v1
Original file line number Diff line number Diff line change @@ -172,3 +172,4 @@ docs/schemas
172
172
# Added by cargo
173
173
174
174
/target
175
+ /packages /python /src /lcax /lcax /
Original file line number Diff line number Diff line change @@ -36,3 +36,7 @@ build-backend = "maturin"
36
36
[tool .maturin ]
37
37
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
38
38
python-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