-
Notifications
You must be signed in to change notification settings - Fork 57
47 lines (40 loc) · 1.02 KB
/
unit_tests.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
name: unit-tests
on:
pull_request:
# push:
branches:
- "*"
jobs:
run-unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build for tests
run: |
python tests/scripts/local_build_ci.py
pip install docker
pip install requests
# docker-compose build
# docker-compose up -d
# sleep 2
- name: Run Tests
run: sh scripts/run_tests.sh
run-rust-unit-tests:
needs: run-unit-tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build and Run Unit Tests
run: cargo test