Skip to content

Commit

Permalink
Add Python CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Nov 10, 2023
1 parent 12336bf commit 76fa887
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Continuous Integration Checks - Python

on: [push, pull_request]

jobs:
check-python:
runs-on: ubuntu-latest

env:
LDK_NODE_PYTHON_DIR: bindings/python

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Generate Python bindings
run: ./scripts/uniffi_bindgen_generate_python.sh

- name: Start bitcoind and electrs
run: docker compose up -d

- name: Run ldk-node-python tests
env: |
BITCOIN_CLI_BIN: "docker exec ldk-node-bitcoin-1 bitcoin-cli"
BITCOIND_RPC_USER: "user"
BITCOIND_RPC_PASSWORD: "pass"
ESPLORA_ENDPOINT: "http://127.0.0.1:3002"
run: |
cd $LDK_NODE_PYTHON_DIR
pip3 install requests
python3 -m unittest discover -s src/ldk_node

0 comments on commit 76fa887

Please sign in to comment.