-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (32 loc) · 967 Bytes
/
ci.yml
File metadata and controls
42 lines (32 loc) · 967 Bytes
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
name: CI Pipeline
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
permissions:
contents: write
jobs:
lint-and-test:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest pytest-cov
pip install -r requirements.txt
pip install -e .[all]
- name: Lint with Ruff
run: |
ruff format --check .
ruff check .
- name: Run Tests
run: |
python -c "import meridianalgo; print(f'MeridianAlgo {meridianalgo.__version__} loaded')"
pytest tests/test_core.py tests/test_machine_learning.py tests/test_comprehensive_suite.py -v --tb=short