File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed
Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Python
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Run tests
20+ run : |
21+ pip install -r requirements.txt
22+ pytest
Original file line number Diff line number Diff line change 2020 run : cargo build --verbose
2121 - name : Run tests
2222 run : cargo test --verbose
23+ - name : Maturin build
24+ run : |
25+ pip install -r requirements.txt
26+ maturin build
Original file line number Diff line number Diff line change @@ -56,6 +56,17 @@ The lstore (`./lstore`) directory is where the Python code goes. This is what ge
5656The src (` ./src ` ) directory is where the Rust code goes. This gets called by the code in the lstore module.
5757
5858## Testing
59+
60+ #### Rust testing
5961```
6062cargo test
6163```
64+
65+ Rust tests are located in each Rust file and can be found in ` ./src `
66+
67+ #### Python testing
68+ ```
69+ pytest
70+ ```
71+
72+ Python tests are located in a seperate directory called ` tests ` located in ` ./python `
You can’t perform that action at this time.
0 commit comments