From 8b14072f454c59aefc6dd5685f5bc80a8a28a558 Mon Sep 17 00:00:00 2001 From: mario4tier Date: Sun, 20 Sep 2026 19:21:46 -0400 Subject: [PATCH 1/2] test: accept a TA-Lib C newer than we require dev tracks TA-Lib C's dev branch, whose version moves ahead of the release. --- tests/test_func.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_func.py b/tests/test_func.py index 1aae80e98..34adabbde 100644 --- a/tests/test_func.py +++ b/tests/test_func.py @@ -11,7 +11,9 @@ def test_talib_version(): - assert talib.__ta_version__[:5] == b'0.8.1' + required = (0, 8, 1) + installed = tuple(int(p) for p in talib.__ta_version__.split()[0].split(b'.')) + assert installed >= required def test_num_functions(): From 42fb4f01b4c1614e5fbab8c6e53cd0ce706811fc Mon Sep 17 00:00:00 2001 From: mario4tier Date: Sun, 20 Sep 2026 19:21:54 -0400 Subject: [PATCH 2/2] ci: add the dev-* release lane, pinned to the wheels' TA-Lib C --- .github/workflows/tests.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 13b3a0f33..e311c1b91 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,10 +1,12 @@ name: Tests +# master and the dev-* release branches test against the TA-Lib C release the +# wheels are built from. dev tracks TA-Lib C's dev branch, in tests-dev.yml. on: push: - branches: [ master ] + branches: [ master, 'dev-*' ] pull_request: - branches: [ master ] + branches: [ master, 'dev-*' ] jobs: build: @@ -15,8 +17,18 @@ jobs: steps: - uses: actions/checkout@v3 + - name: TA-Lib C version + id: talib_c + run: | + set -euo pipefail + V=$(sed -n 's/^ TALIB_C_VER: *//p' .github/workflows/wheels.yml) + [ -n "$V" ] || { echo "::error::no TALIB_C_VER in wheels.yml"; exit 1; } + echo "version=$V" >> "$GITHUB_OUTPUT" + - name: Set up TA-Lib uses: TA-Lib/setup-ta-lib@v1 + with: + version: ${{ steps.talib_c.outputs.version }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4