added new model kmeans clustering #276
Workflow file for this run
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: Python Lint, Format, and Tests | |
| on: [push] | |
| jobs: | |
| lint-format-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22.13.0 | |
| - name: Install Node.js dependencies | |
| run: npm install | |
| - name: Build Tailwind CSS | |
| run: npm run tw_build | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.12 | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| pip install black isort flake8 | |
| - name: Run Black (check) | |
| run: black --check . | |
| - name: Run Isort (check) | |
| run: isort --check-only . | |
| - name: Run Flake8 | |
| run: flake8 . | |
| - name: Run Django Tests | |
| run: | | |
| # Run Django tests with manage.py | |
| export PYTHONPATH=./Algolyzer:$PYTHONPATH | |
| export DJANGO_SETTINGS_MODULE=Algolyzer.settings.development | |
| cd Algolyzer | |
| python manage.py test |