forked from quantopian/zipline
-
Notifications
You must be signed in to change notification settings - Fork 214
96 lines (82 loc) · 2.4 KB
/
ci_tests_quick.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: CI Tests - Quick
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
black-format:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --diff"
src: "./src ./tests"
version: '24.1'
flake8-lint:
name: Lint Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: flake8 Lint
uses: py-actions/flake8@v2
tests:
name: Unit Tests for ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.11"]
steps:
- name: Checkout Zipline
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install TA-Lib
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo ./tools/install_talib.sh
- name: Install TA-Lib HDF5 c-blosc
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install ta-lib
brew install hdf5
brew install c-blosc
- name: Developer Command Prompt for Microsoft Visual C++
uses: ilammy/msvc-dev-cmd@v1
- name: Install TA-Lib
if: ${{ matrix.os == 'windows-latest' }}
run: |
./tools/install_talib.bat
- name: Install Zipline
run: |
python -VV
python -m pip install --upgrade pip setuptools wheel
python -m pip install tox tox-gh-actions
python -m pip install .[test]
- name: Unittests with tox & pytest
uses: nick-fields/retry@v3
with:
timeout_minutes: 90
max_attempts: 3
retry_on: error
new_command_on_retry: python -m pip install tox tox-gh-actions .[test]
command: tox -e py311-pandas2
- name: Upload coverage data to Codecov
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
name: codecov-umbrella
verbose: true