feat: initialize v1.0.0 refactor foundation #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: v2-refactor CI | |
| on: | |
| push: | |
| branches: [ v2-refactor ] | |
| pull_request: | |
| branches: [ v2-refactor, main ] | |
| jobs: | |
| backend-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install backend dependencies | |
| run: | | |
| cd backend | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pytest pytest-cov pytest-asyncio | |
| - name: Run backend tests | |
| run: | | |
| cd backend | |
| pytest tests/ -v --cov=. --cov-report=term-missing | |
| - name: Check feature flags | |
| run: | | |
| cd backend | |
| python -c "from feature_flags import FLAGS; print('Feature flags loaded:', len(FLAGS.get_all()))" | |
| frontend-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Install frontend dependencies | |
| run: | | |
| cd frontend | |
| npm ci | |
| - name: Run frontend tests | |
| run: | | |
| cd frontend | |
| npm test -- --run | |
| - name: Build frontend | |
| run: | | |
| cd frontend | |
| npm run build | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Build Docker images | |
| run: | | |
| docker-compose build | |
| - name: Verify images | |
| run: | | |
| docker images | grep llmscope |