Skip to content

Commit

Permalink
Migrate create, restore, and receive to bdk (#4231)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Mar 5, 2025
1 parent 7e96b24 commit 23fb7cd
Show file tree
Hide file tree
Showing 23 changed files with 931 additions and 1,031 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- master
pull_request:
branches:
- master

defaults:
run:
Expand Down Expand Up @@ -94,6 +92,14 @@ jobs:
sudo apt-get install ripgrep
./bin/forbid
- name: Check for blacklist
if: ${{ github.event.pull_request.base.ref == 'master' }}
run: |
if [[ -f blacklist.txt ]]; then
echo "error: found blacklist.txt"
exit 1
fi
test:
strategy:
matrix:
Expand All @@ -116,4 +122,9 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: Test
if: ${{ github.event.pull_request.base.ref == 'master' }}
run: cargo test --all

- name: Test
if: ${{ github.event.pull_request.base.ref == 'bdk' }}
run: ./bin/test
68 changes: 68 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ anyhow = { version = "1.0.90", features = ["backtrace"] }
axum = { version = "0.8.1", features = ["http2"] }
axum-server = "0.7.1"
base64.workspace = true
bdk_wallet = "1.1.0"
bip322 = "0.0.9"
bip39 = "2.0.0"
bitcoin.workspace = true
Expand Down
16 changes: 16 additions & 0 deletions bin/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env python3

import shutil, subprocess, sys

test = 'ltest' if shutil.which('cargo-ltest') else 'test'

with open('blacklist.txt') as f:
blacklist = f.read().splitlines()

command = ['cargo', test, '--', '--exact']

for test in blacklist:
command.append('--skip')
command.append(test)

sys.exit(subprocess.run(command).returncode)
Loading

0 comments on commit 23fb7cd

Please sign in to comment.