Skip to content

Commit 428c361

Browse files
committed
CI: Update CI workflows
1 parent 6319193 commit 428c361

File tree

3 files changed

+22
-29
lines changed

3 files changed

+22
-29
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,33 @@ on:
77
jobs:
88
build:
99
name: Build
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [3.7, '3.10']
13+
python-version: ['3.10', 3.13]
1414
include:
15-
- python-version: 3.9
15+
- python-version: 3.11
1616
test-type: lint
17-
- python-version: 3.9
17+
- python-version: 3.11
1818
test-type: docs
1919

2020
steps:
21-
- uses: actions/setup-python@v4
21+
- uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
24-
- uses: actions/cache@v3
24+
- uses: actions/cache@v4
2525
with:
2626
path: ~/.cache/pip
2727
key: ${{ runner.os }}-py${{ matrix.python-version }}
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 3
3131
- name: Fetch tags
3232
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
3333

3434
- run: pip install -U pip setuptools wheel
3535
- if: matrix.test-type == 'lint'
36-
run: pip install -U --pre bokeh pandas 'numpy<1.24' && pip install -U .[dev]
36+
run: pip install -U --pre bokeh pandas numpy && pip install -U .[dev]
3737
- if: matrix.test-type == 'docs'
3838
run: pip install -e .[doc] # -e provides _version.py for pdoc
3939
- run: pip install -U .[test]
@@ -44,13 +44,13 @@ jobs:
4444
run: mypy backtesting
4545
- if: matrix.test-type == 'lint'
4646
env: { BOKEH_BROWSER: none }
47-
run: time catchsegv coverage run -m backtesting.test
47+
run: time coverage run -m backtesting.test
4848
- if: matrix.test-type == 'lint'
49-
run: coverage report
49+
run: coverage combine && coverage report
5050

5151
- if: '! matrix.test-type'
5252
env: { BOKEH_BROWSER: none }
53-
run: time catchsegv python -m backtesting.test
53+
run: time python -m backtesting.test
5454

5555
- if: matrix.test-type == 'docs'
56-
run: time catchsegv doc/build.sh
56+
run: time doc/build.sh

.github/workflows/deploy-docs.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,26 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Set up Python
13-
uses: actions/setup-python@v2
12+
- uses: actions/setup-python@v5
1413
with:
15-
python-version: 3.8
14+
python-version: 3.11
1615

17-
- uses: actions/cache@v2
18-
name: Set up caches
16+
- uses: actions/cache@v4
1917
with:
2018
path: ~/.cache/pip
2119
key: ${{ runner.os }}
2220

23-
- name: Checkout repo
24-
uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2522
with:
2623
fetch-depth: 3
2724
- name: Fetch tags
2825
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2926

30-
- name: Install dependencies
31-
run: |
32-
pip install -U pip setuptools wheel
33-
pip install -U -e .[doc,test]
27+
- run: pip install -U pip setuptools wheel
28+
- run: pip install -U -e .[doc,test]
3429

35-
- name: Build docs
36-
run: time catchsegv doc/build.sh
30+
- run: time doc/build.sh
3731

38-
- name: Deploy docs
32+
- run: .github/deploy-gh-pages.sh
3933
env:
4034
GH_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
41-
run: .github/deploy-gh-pages.sh

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ ignore_missing_imports = True
1313

1414
[coverage:run]
1515
parallel = 1
16-
concurrency =
17-
multiprocessing
16+
concurrency = multiprocessing,thread
17+
disable_warnings = no-data-collected
1818
source =
1919
backtesting
2020
doc/examples

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy