Skip to content
16 changes: 15 additions & 1 deletion .github/workflows/check-self.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,29 @@ jobs:

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
env:
UV_PYTHON: 3.11

- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Download CLN versions
env:
UV_PYTHON: 3.11
run: |
cd libs/cln-version-manager
uv run --extra cli python3 clnvm/cli.py get-all

- name: Install Protoc
uses: arduino/setup-protoc@v3

- name: Install dependencies
run: task docker:install-dependencies

- name: Adjust PATH
env:
UV_PYTHON: 3.11
run: |
echo "/home/runner/.cargo/bin" >> $GITHUB_PATH
# Directory in which go-task deposits its binaries
Expand All @@ -53,13 +64,16 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build binaries
env:
UV_PYTHON: 3.11
run:
task ci-build

- name: Check Self
env:
GL_TESTING_IGNORE_HASH: 1
PYTEST_OPTS: -n 6
UV_PYTHON: 3.11
run : |
task clientpy:check
task testing:check
36 changes: 21 additions & 15 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
python-version: 3.9
architecture: x64
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v7
with:
version: "latest"

Expand Down Expand Up @@ -53,11 +53,9 @@ jobs:
# - armv7
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
Expand All @@ -84,16 +82,17 @@ jobs:
install: |
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip
pip3 install -U pip pytest
uv sync
run: |
pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
uv pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
python3 -c "import glclient;creds=glclient.Credentials();signer=glclient.Signer(b'\x00'*32,'bitcoin', creds);print(repr(creds));print(signer.version())"

- name: Install built wheel (native)
if: matrix.target == 'x86_64'
run: |
pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
python3 -c "import glclient;creds=glclient.Credentials();signer=glclient.Signer(b'\x00'*32,'bitcoin', creds);print(repr(creds));print(signer.version())"
uv sync
uv pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
uv run python3 -c "import glclient;creds=glclient.Credentials();signer=glclient.Signer(b'\x00'*32,'bitcoin', creds);print(repr(creds));print(signer.version())"

- name: Upload wheels
uses: actions/upload-artifact@v4
Expand All @@ -102,7 +101,7 @@ jobs:
path: libs/gl-client-py/dist/

macos:
runs-on: macos-13
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
Expand All @@ -114,9 +113,13 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: x64

- uses: dtolnay/rust-toolchain@nightly

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
Expand All @@ -134,10 +137,13 @@ jobs:
MACOSX_DEPLOYMENT_TARGET: 10.9

- name: Install built wheel
if: matrix.target == 'x86_64'
env:
PATH: $PATH:$HOME/.local/bin
if: matrix.target == 'aarch64'
run: |
pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
python3 -c "import glclient;creds=glclient.Credentials();signer=glclient.Signer(b'\x00'*32,'bitcoin', creds);print(repr(creds));print(signer.version())"
uv sync
uv pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
uv run python3 -c "import glclient;creds=glclient.Credentials();signer=glclient.Signer(b'\x00'*32,'bitcoin', creds);print(repr(creds));print(signer.version())"

- name: Upload wheels
uses: actions/upload-artifact@v4
Expand Down
Loading
Loading