feat: improve dashboard UX and README GenAI documentation #4
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint-test: | |
| name: Lint & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Cache pip dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Ruff lint | |
| run: ruff check src/ api/ dashboard/ tests/ | |
| - name: Ruff format check | |
| run: ruff format --check src/ api/ dashboard/ tests/ | |
| - name: Mypy type check | |
| run: mypy src/bcgx/ | |
| - name: Run unit tests with coverage | |
| run: pytest tests/unit/ --cov=src/bcgx --cov-report=xml --cov-report=term-missing -v | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v4 | |
| if: always() | |
| with: | |
| files: coverage.xml | |
| fail_ci_if_error: false | |
| build-docker: | |
| name: Build Docker Images | |
| runs-on: ubuntu-latest | |
| needs: lint-test | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker images | |
| run: docker-compose build |