Fix ruff formatting for CI/CD pipeline #56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |