feat: trigger Scout on issue comments and model threads as conversations #18
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: Lint & Type Check | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install dev dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Ruff (lint) | |
| run: ruff check . | |
| - name: Mypy (type check) | |
| run: mypy src/scout | |
| - name: Validate action + workflow YAML | |
| # actionlint (below) checks workflow files but not action.yml files, so parse them here. | |
| run: | | |
| python - <<'PY' | |
| import glob | |
| import yaml | |
| targets = [ | |
| "action.yml", | |
| *sorted(glob.glob("actions/*/action.yml")), | |
| *sorted(glob.glob(".github/workflows/*.yml")), | |
| ] | |
| for f in targets: | |
| with open(f) as fh: | |
| yaml.safe_load(fh) | |
| print(f"ok: {f}") | |
| PY | |
| actionlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Actionlint | |
| uses: docker://rhysd/actionlint:1.7.7 | |
| with: | |
| args: -color |