Skip to content

[feat]: Add prompt optimisation script #20

[feat]: Add prompt optimisation script

[feat]: Add prompt optimisation script #20

Workflow file for this run

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