|
7 | 7 | jobs: |
8 | 8 | build: |
9 | 9 | name: Build |
10 | | - runs-on: ubuntu-18.04 |
| 10 | + runs-on: ubuntu-latest |
11 | 11 | strategy: |
12 | 12 | matrix: |
13 | | - python-version: [3.7, '3.10'] |
| 13 | + python-version: ['3.10', 3.13] |
14 | 14 | include: |
15 | | - - python-version: 3.9 |
| 15 | + - python-version: 3.11 |
16 | 16 | test-type: lint |
17 | | - - python-version: 3.9 |
| 17 | + - python-version: 3.11 |
18 | 18 | test-type: docs |
19 | 19 |
|
20 | 20 | steps: |
21 | | - - uses: actions/setup-python@v4 |
| 21 | + - uses: actions/setup-python@v5 |
22 | 22 | with: |
23 | 23 | python-version: ${{ matrix.python-version }} |
24 | | - - uses: actions/cache@v3 |
| 24 | + - uses: actions/cache@v4 |
25 | 25 | with: |
26 | 26 | path: ~/.cache/pip |
27 | 27 | key: ${{ runner.os }}-py${{ matrix.python-version }} |
28 | | - - uses: actions/checkout@v3 |
| 28 | + - uses: actions/checkout@v4 |
29 | 29 | with: |
30 | 30 | fetch-depth: 3 |
31 | 31 | - name: Fetch tags |
32 | 32 | run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* |
33 | 33 |
|
34 | 34 | - run: pip install -U pip setuptools wheel |
35 | 35 | - 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] |
37 | 37 | - if: matrix.test-type == 'docs' |
38 | 38 | run: pip install -e .[doc] # -e provides _version.py for pdoc |
39 | 39 | - run: pip install -U .[test] |
40 | 40 |
|
41 | 41 | - if: matrix.test-type == 'lint' |
42 | | - run: ruff backtesting |
| 42 | + run: flake8 backtesting setup.py |
43 | 43 | - if: matrix.test-type == 'lint' |
44 | 44 | run: mypy backtesting |
45 | 45 | - if: matrix.test-type == 'lint' |
46 | 46 | env: { BOKEH_BROWSER: none } |
47 | | - run: time catchsegv coverage run -m backtesting.test |
| 47 | + run: time coverage run -m backtesting.test |
48 | 48 | - if: matrix.test-type == 'lint' |
49 | | - run: bash <(curl -s https://codecov.io/bash) |
| 49 | + run: coverage combine && coverage report |
50 | 50 |
|
51 | 51 | - if: '! matrix.test-type' |
52 | 52 | env: { BOKEH_BROWSER: none } |
53 | | - run: time catchsegv python -m backtesting.test |
| 53 | + run: time python -m backtesting.test |
54 | 54 |
|
55 | 55 | - if: matrix.test-type == 'docs' |
56 | | - run: time catchsegv doc/build.sh |
| 56 | + run: time doc/build.sh |
0 commit comments