Skip to content

Commit 557f7d0

Browse files
committed
Use zermq/v5-compat and add python to CI
1 parent ce56280 commit 557f7d0

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.github/workflows/test.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,35 @@ jobs:
1010
strategy:
1111
matrix:
1212
node-version: [22]
13+
python-version: [3.10]
1314

1415
steps:
1516
- name: Checkout code
1617
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Ensure pip is up to date
25+
run: python -m pip install --upgrade pip
26+
27+
- name: Install webgme_bindings Python module
28+
run: pip install -e python/webgme_bindings
29+
1730
- name: Start MongoDB
1831
uses: supercharge/mongodb-github-action@1.12.0
1932
with:
2033
mongodb-version: 8
34+
2135
- name: Set up Node.js
2236
uses: actions/setup-node@v3
2337
with:
2438
node-version: ${{ matrix.node-version }}
39+
2540
- name: Install dependencies
2641
run: npm install
42+
2743
- name: Run tests
2844
run: npm test

src/corezmq.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @author pmeijer / https://github.com/pmeijer
1111
*/
1212

13-
const zmq = require('zeromq');
13+
const zmq = require('zeromq/v5-compat');
1414
const Q = require('q');
1515
const pluginUtil = require('webgme-engine/src/plugin/util');
1616

zmq/tutorial_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Connects REQ socket to tcp://localhost:5555
33
// Sends "Hello" to server.
44

5-
var zmq = require('zeromq');
5+
var zmq = require('zeromq/v5-compat');
66

77
// socket to talk to server
88
console.log("Connecting to hello world server...");

zmq/tutorial_server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Binds REP socket to tcp://*:5555
33
// Expects "Hello" from client, replies with "world"
44

5-
var zmq = require('zeromq');
5+
var zmq = require('zeromq/v5-compat');
66

77
// socket to talk to clients
88
var responder = zmq.socket('rep');

0 commit comments

Comments
 (0)