A/B scorer: repo on PYTHONPATH for hidden tests; crash-proof git fact… #22
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: | |
| pull_request: | |
| jobs: | |
| python: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| # Project is stdlib-only; no pip install needed | |
| - run: python3 -m unittest discover -s tests | |
| ui: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: ui/package-lock.json | |
| - working-directory: ui | |
| run: npm ci | |
| - working-directory: ui | |
| run: npx tsc --noEmit | |
| - working-directory: ui | |
| run: npm run build | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - run: pipx run ruff check . | |
| installer: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run install.sh against this checkout | |
| run: | | |
| export CODECOUNCIL_HOME="$RUNNER_TEMP/cc-home" | |
| export CODECOUNCIL_REPO_URL="file://$GITHUB_WORKSPACE" | |
| sh install.sh | |
| test -x "$HOME/.local/bin/codecouncil" | |
| test -f "$HOME/.codecouncil/env" | |
| - name: Launcher runs and prints usage | |
| run: | | |
| export CODECOUNCIL_HOME="$RUNNER_TEMP/cc-home" | |
| "$HOME/.local/bin/codecouncil" --help | |
| - name: Re-run is idempotent (update path) | |
| run: | | |
| export CODECOUNCIL_HOME="$RUNNER_TEMP/cc-home" | |
| export CODECOUNCIL_REPO_URL="file://$GITHUB_WORKSPACE" | |
| sh install.sh |