-
-
Notifications
You must be signed in to change notification settings - Fork 101
31 lines (25 loc) · 837 Bytes
/
python-client-check.yml
File metadata and controls
31 lines (25 loc) · 837 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
name: Verify Python Client Methods
on:
pull_request:
jobs:
verify:
name: Verify client.py methods are up-to-date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install --workspace=pmxt-core
- name: Regenerate client methods
run: node sdks/python/scripts/generate-client-methods.js
- name: Check if client.py changed
run: |
if git diff --exit-code sdks/python/pmxt/client.py; then
echo "client.py methods are up-to-date"
else
echo "client.py methods are out of sync with BaseExchange.ts"
echo "Run: node sdks/python/scripts/generate-client-methods.js"
exit 1
fi