-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (65 loc) · 2.24 KB
/
Copy pathci.yml
File metadata and controls
70 lines (65 loc) · 2.24 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.12", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: pip install -e ".[dev]"
- run: python -m pytest tests/ -q
cli-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e .
- name: registry + pub + sub + browse, end to end on localhost
run: |
hypernova registry --store '' &
sleep 2
hypernova pub ci/smoke --address opc.udp://239.10.0.99:24870 \
--publisher-id 7 --writer-group-id 1 --dataset-writer-id 1 \
--field counter=INT32 --value counter=0 --ramp \
--interval 0.2 --count 200 --interface 127.0.0.1 &
hypernova sub ci/smoke --count 5 --timeout 30 --interface 127.0.0.1
hypernova browse
java-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e .
- name: Golden vectors (byte parity with the C++ and Python codecs)
working-directory: clients/java
run: |
javac --release 11 -d build $(find src -name "*.java")
java -cp build ch.quasarnova.hypernova.GoldenTest ../../tests/golden/vectors.json
- name: Live loop (Python publisher -> Java subscriber)
run: |
hypernova pub ci/javaloop --address opc.udp://127.0.0.1:24895 \
--publisher-id 21 --writer-group-id 2 --dataset-writer-id 2 \
--field counter=INT32 --field 'samples=DOUBLE[]' \
--value counter=0 --value samples=1.5,2.5 --ramp \
--interval 0.2 --count 300 --registry http://127.0.0.1:1 &
java -cp clients/java/build ch.quasarnova.hypernova.LiveLoopTest 24895 10