File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main, develop]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : [3.11, 3.12]
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v4
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install -e ".[dev]"
28+
29+ - name : Lint with ruff
30+ run : |
31+ ruff check src/ tests/
32+
33+ - name : Check formatting with black
34+ run : |
35+ black --check src/ tests/
36+
37+ - name : Run tests
38+ run : |
39+ pytest --cov=src/quant_research_starter --cov-report=xml
40+
41+ - name : Upload coverage to Codecov
42+ uses : codecov/codecov-action@v3
43+ with :
44+ file : ./coverage.xml
45+ flags : unittests
46+ name : codecov-umbrella
47+
48+ build-docker :
49+ runs-on : ubuntu-latest
50+ steps :
51+ - uses : actions/checkout@v4
52+
53+ - name : Build Docker image
54+ run : |
55+ docker build -t quant-research-starter:latest .
You can’t perform that action at this time.
0 commit comments