Skip to content

Fix ruff formatting for CI/CD pipeline #56

Fix ruff formatting for CI/CD pipeline

Fix ruff formatting for CI/CD pipeline #56

Workflow file for this run

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