-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (39 loc) · 1.14 KB
/
surrealml_core_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Run tests on Pull Request
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
test_core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Replace '3.x' with the specific version if needed
- name: Pre-test Setup
run: |
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# build the local version of the core module to be loaded into python
python tests/scripts/local_build.py
# train the models for the tests
python tests/scripts/build_assets.py
- name: Run Python Unit Tests
run: |
source venv/bin/activate
python -m unittest discover
deactivate
- name: Run Core Unit Tests
run: cd modules/core && cargo test
- name: Run HTTP Transfer Tests
run: cargo test