Skip to content

Commit c970f07

Browse files
committed
CI: Defensively built-test pre-releases (pip install --pre)
1 parent 5996786 commit c970f07

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
env:
88
TQDM_DISABLE: 1
99
PYTHONWARNINGS: always::FutureWarning,always::DeprecationWarning
10+
BOKEH_BROWSER: none
1011
jobs:
1112
lint:
1213
runs-on: ubuntu-latest
@@ -27,8 +28,7 @@ jobs:
2728
with:
2829
python-version: '3.11'
2930
- run: pip install -U --pre bokeh pandas numpy coverage && pip install -U .[test]
30-
- env: { BOKEH_BROWSER: none }
31-
run: time coverage run -m backtesting.test
31+
- run: time coverage run -m backtesting.test
3232
- run: coverage combine && coverage report
3333

3434
build:
@@ -37,7 +37,7 @@ jobs:
3737
timeout-minutes: 3
3838
strategy:
3939
matrix:
40-
python-version: [3.13, 3.14]
40+
python-version: [3.12]
4141
experimental: [false]
4242
include:
4343
- python-version: '3.*'
@@ -49,8 +49,20 @@ jobs:
4949
python-version: ${{ matrix.python-version }}
5050
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
5151
- run: pip install -U .[test]
52-
- env: { BOKEH_BROWSER: none }
53-
run: time python -m backtesting.test
52+
- run: time python -m backtesting.test
53+
54+
deps_prereleases:
55+
needs: lint
56+
runs-on: ubuntu-latest
57+
timeout-minutes: 3
58+
continue-on-error: true
59+
steps:
60+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
61+
with:
62+
python-version: 3.13
63+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
64+
- run: pip install --pre -U .[test]
65+
- run: time python -m backtesting.test
5466

5567
docs:
5668
needs: lint
@@ -76,8 +88,7 @@ jobs:
7688
with:
7789
python-version: 3.14
7890
- run: pip install .[test]
79-
- env: { BOKEH_BROWSER: none }
80-
run: python -m backtesting.test
91+
- run: python -m backtesting.test
8192

8293
workflow-keepalive:
8394
if: github.event_name == 'schedule'

0 commit comments

Comments
 (0)