Skip to content

Commit 4fc4e1f

Browse files
Merge branch 'main' of github.com:JakeRoggenbuck/ecs-165a-database
2 parents 7a293f5 + 730c9a2 commit 4fc4e1f

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.github/workflows/python.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

.github/workflows/rust.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ jobs:
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

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ The lstore (`./lstore`) directory is where the Python code goes. This is what ge
5656
The 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
```
6062
cargo 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`

0 commit comments

Comments
 (0)