ci(release): wire release-please via org-dotgithub reusable workflow … #40
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: | |
| 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/ |