Implement initial API for Rubik's Cube color recognition and dataset … #1
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: RubikCube API CI | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Generate synthetic dataset | |
| run: | | |
| python generate_synthetic_dataset.py | |
| python train_color_model.py | |
| - name: Run tests | |
| run: | | |
| pytest tests/ | |
| - name: Check test coverage | |
| run: | | |
| pip install coverage | |
| coverage run -m pytest tests/ | |
| coverage report |