Skip to content

ci: pin remaining actions to commit SHAs, add coverage regression gate, review runner token scope #30

ci: pin remaining actions to commit SHAs, add coverage regression gate, review runner token scope

ci: pin remaining actions to commit SHAs, add coverage regression gate, review runner token scope #30

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.12"
- name: Syntax check
run: python -m py_compile agent/poll_once.py
- name: Import check
run: python -c "import agent.poll_once"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Unit tests
run: pytest --cov=agent --cov-report=term-missing --cov-fail-under=90 tests/