Run Python Windows tests in CI
This commit is contained in:
parent
279847b024
commit
4fb5f970c2
31
.github/workflows/test-python.yaml
vendored
31
.github/workflows/test-python.yaml
vendored
@ -42,12 +42,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
# - name: "Set default Rust version to 1.67.0"
|
|
||||||
# run: rustup default 1.67.0
|
|
||||||
#
|
|
||||||
# - name: "Install requirements"
|
|
||||||
# run: ${PYBIN}/pip install -r requirements.txt
|
|
||||||
|
|
||||||
- name: "Generate bdk.py and binaries"
|
- name: "Generate bdk.py and binaries"
|
||||||
run: bash ./scripts/generate-linux.sh
|
run: bash ./scripts/generate-linux.sh
|
||||||
|
|
||||||
@ -85,7 +79,9 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/setup-python@v2
|
|
||||||
|
- name: "Install Python"
|
||||||
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
|
|
||||||
@ -167,11 +163,13 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/setup-python@v2
|
|
||||||
|
- name: "Install Python"
|
||||||
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
|
|
||||||
- name: "Generate bdk.py"
|
- name: "Generate bdk.py and binaries"
|
||||||
run: bash ./scripts/generate-windows.sh
|
run: bash ./scripts/generate-windows.sh
|
||||||
|
|
||||||
- name: "Build wheel"
|
- name: "Build wheel"
|
||||||
@ -183,12 +181,9 @@ jobs:
|
|||||||
name: bdkpython-windows-${{ matrix.python }}
|
name: bdkpython-windows-${{ matrix.python }}
|
||||||
path: D:\a\bdk-ffi\bdk-ffi\bdk-python\dist\*.whl
|
path: D:\a\bdk-ffi\bdk-ffi\bdk-python\dist\*.whl
|
||||||
|
|
||||||
# TODO: On Windows the pip install ./dist/*.whl step fails with the following error:
|
- name: "Install dependencies"
|
||||||
# Run pip install ./dist/*.whl
|
run: Get-ChildItem 'D:\a\bdk-ffi\bdk-ffi\bdk-python\dist\*.whl' | ForEach-Object {pip install $_.FullName}
|
||||||
# WARNING: Requirement './dist/*.whl' looks like a filename, but the file does not exist
|
shell: powershell
|
||||||
# ERROR: *.whl is not a valid wheel filename.*.whl is not a valid wheel name
|
|
||||||
# So we skip the installing and the tests and simply test that the wheel builds
|
- name: "Run tests"
|
||||||
# - name: Install wheel
|
run: python -m unittest tests/test_bdk.py --verbose
|
||||||
# run: pip install ./dist/*.whl
|
|
||||||
# - name: Run tests
|
|
||||||
# run: python -m unittest tests/test_bdk.py --verbose
|
|
||||||
|
@ -16,7 +16,4 @@ cargo build --profile release-smaller --target x86_64-pc-windows-msvc
|
|||||||
echo "Copying libraries bdkffi.dll..."
|
echo "Copying libraries bdkffi.dll..."
|
||||||
cp ../target/x86_64-pc-windows-msvc/release-smaller/bdkffi.dll ../bdk-python/src/bdkpython/bdkffi.dll
|
cp ../target/x86_64-pc-windows-msvc/release-smaller/bdkffi.dll ../bdk-python/src/bdkpython/bdkffi.dll
|
||||||
|
|
||||||
echo "Printing the content of the bdkpython directory..."
|
|
||||||
ls -la ../bdk-python/src/bdkpython/
|
|
||||||
|
|
||||||
echo "All done!"
|
echo "All done!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user