Skip to content

Commit e5aab28

Browse files
mario4tiermrjbq7
authored andcommitted
ci: add the dev-* release lane, pinned to the wheels' TA-Lib C
1 parent f4ad30e commit e5aab28

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: Tests
22

3+
# master and the dev-* release branches test against the TA-Lib C release the
4+
# wheels are built from. dev tracks TA-Lib C's dev branch, in tests-dev.yml.
35
on:
46
push:
5-
branches: [ master ]
7+
branches: [ master, 'dev-*' ]
68
pull_request:
7-
branches: [ master ]
9+
branches: [ master, 'dev-*' ]
810

911
jobs:
1012
build:
@@ -15,8 +17,18 @@ jobs:
1517
steps:
1618
- uses: actions/checkout@v3
1719

20+
- name: TA-Lib C version
21+
id: talib_c
22+
run: |
23+
set -euo pipefail
24+
V=$(sed -n 's/^ TALIB_C_VER: *//p' .github/workflows/wheels.yml)
25+
[ -n "$V" ] || { echo "::error::no TALIB_C_VER in wheels.yml"; exit 1; }
26+
echo "version=$V" >> "$GITHUB_OUTPUT"
27+
1828
- name: Set up TA-Lib
1929
uses: TA-Lib/setup-ta-lib@v1
30+
with:
31+
version: ${{ steps.talib_c.outputs.version }}
2032

2133
- name: Set up Python ${{ matrix.python-version }}
2234
uses: actions/setup-python@v4

0 commit comments

Comments
 (0)