Skip to content

Commit 3bb3805

Browse files
authored
Event-based implementation of Simulation bridge (#14)
- Replaces old simulation bridge with an event-based implementation. The bridge supports secure and insecure versions of HTTP 2.0, MQTT and AMQP protocols. It can also generate the self-signed TLS certificates for HTTP 2.0 protocol server. - Adds example clients and documentation. - Adds github workflow for checking development steps.
1 parent cbb7e32 commit 3bb3805

File tree

102 files changed

+9157
-2568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+9157
-2568
lines changed

.coveragerc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[run]
2+
omit =
3+
agents/*
4+
certs/*
5+
client/*
6+
dist/*
7+
images/*
8+
simulation_bridge/docs/*
9+
simulation_bridge/resources/*
10+
simulation_bridge/test/*
11+
*/venv/*
12+
*/.venv/*
13+
*/__init__.py
14+
15+
[report]
16+
exclude_lines =
17+
if __name__ == .__main__.:
18+
pragma: no cover
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Simulation Bridge Tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
name: Test on ${{ matrix.os }}
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, windows-latest, macos-latest]
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.12"
22+
23+
- name: Install Poetry
24+
run: |
25+
python -m pip install --upgrade pip
26+
curl -sSL https://install.python-poetry.org | python -
27+
env:
28+
POETRY_HOME: ${{ runner.temp }}/poetry
29+
30+
- name: Add Poetry to PATH
31+
run: echo "${{ runner.temp }}/poetry/bin" >> $GITHUB_PATH
32+
if: runner.os != 'Windows'
33+
34+
- name: Add Poetry to PATH on Windows
35+
run: echo "${{ runner.temp }}\poetry\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
36+
if: runner.os == 'Windows'
37+
shell: pwsh
38+
39+
- name: Install dependencies via Poetry
40+
run: |
41+
poetry install
42+
43+
- name: Run Pytest
44+
run: |
45+
poetry run pytest

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,16 @@ agents/matlab/dist/
198198
config*.yaml
199199
simulation*.yaml
200200
*.csv
201+
interactive.py
202+
*_interactive.py
203+
**/examples/interactive-simulation/*
201204
#SIMULATION BRIDGE
202205
/logs
203-
206+
/certs
207+
*.pem
208+
*_use.yaml
209+
client/
210+
dist/
204211
.venv*
205212
certs
213+

.pep8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pycodestyle]
2+
max_line_length = 80

0 commit comments

Comments
 (0)