# CI for shopdb-flask. # # NOTE: this is a best-effort configuration. Gitea Actions availability on # the host is UNVERIFIED - no runner has been confirmed. Until a runner is # registered and this workflow is observed passing, treat it as config-only. # # Three jobs run on push and pull_request: # backend - pytest (tests use in-memory SQLite via TestingConfig, so no # database service is needed). # naming - the CONTRIBUTING.md naming/style gate. # frontend - Vue build. name: CI on: push: pull_request: jobs: backend: runs-on: ubuntu-latest steps: - name: Check out uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Run backend tests run: python -m pytest naming: runs-on: ubuntu-latest steps: - name: Check out uses: actions/checkout@v4 - name: Run naming and style check run: bash scripts/check-naming-and-style.sh frontend: runs-on: ubuntu-latest steps: - name: Check out uses: actions/checkout@v4 - name: Set up Node uses: actions/setup-node@v4 with: node-version: '20' - name: Install and build frontend run: | npm ci npm run build working-directory: frontend