update: README.md #98
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: SentraCore CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| engine-ci: | |
| name: Python Engine CI | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pytest ruff | |
| - name: Lint with Ruff | |
| run: | | |
| # Stop the build if there are Python syntax errors or undefined names | |
| ruff check engine/ tests/ --select=E9,F63,F7,F82 | |
| - name: Run Unit Tests | |
| run: | | |
| python -m pytest tests/ -v | |
| dashboard-ci: | |
| name: Flutter Dashboard CI | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| architecture: x64 | |
| - name: Enable Windows Desktop support | |
| run: flutter config --enable-windows-desktop | |
| - name: Install dependencies | |
| working-directory: ./dashboard | |
| run: flutter pub get | |
| - name: Analyze Dart Code | |
| working-directory: ./dashboard | |
| run: flutter analyze | |
| - name: Run Flutter Tests | |
| working-directory: ./dashboard | |
| run: flutter test |