-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (35 loc) · 876 Bytes
/
main.yml
File metadata and controls
45 lines (35 loc) · 876 Bytes
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
name: main
on:
push:
branches:
- "main"
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GH_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
make
pip install -e .
- name: Run tests with pytest
run: |
pytest -v
- name: Run examples
run: |
synapse-sim --iface-ip 127.0.0.1 --rpc-port 50051 &
sleep 5
python synapse/examples/stream_out.py 127.0.0.1:50051
kill $(jobs -p)