Use upstream Electrum EOF fix #4044
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI Checks - Python Tests | |
| on: [push, pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-python: | |
| timeout-minutes: 120 | |
| runs-on: ubuntu-latest | |
| env: | |
| CARGO_TARGET_DIR: /tmp/cargo-target-ldk-node-python-ci | |
| LDK_NODE_PYTHON_DIR: bindings/python | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "0.12.3" | |
| - name: Install supported Python versions | |
| run: uv python install 3.10 3.14 | |
| - name: Generate Python bindings | |
| run: ./scripts/uniffi_bindgen_generate_python.sh | |
| - name: Start bitcoind and electrs | |
| run: docker compose -p ldk-node -f tests/docker/docker-compose.yml up -d | |
| - name: Run Python unit 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 | |
| for python_version in 3.10 3.14; do | |
| UV_PROJECT_ENVIRONMENT=".venv-$python_version" \ | |
| uv run --python "$python_version" --group dev \ | |
| python -m unittest discover -s src/ldk_node | |
| done |