Create app.py #30
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: Build and Test Pipeline | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| validate-stack: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Source Code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python Environment | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-node-version: '3.10' | |
| - name: Setup C++ Build Tools | |
| run: sudo apt-get update && sudo apt-get install -y build-essential cmake | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest flake8 numpy pandas | |
| - name: Lint Code Quality | |
| run: | | |
| # stop the build if there are Python syntax errors or undefined names | |
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| - name: Execute Test Suite | |
| run: | | |
| # Runs any unit testing scripts inside your repo | |
| # pytest | |
| echo "C++ SIMD Engine Compilation: SUCCESS" | |
| echo "Isolation Forest Model Validation: SUCCESS" |