Repository navigation
docs: first quality pilot failed on two shared-state misses #70
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: tests | |
| # Merging this repo is deploying it: the runner's ~/review/bin is a symlink into | |
| # a checkout, so whatever lands on main is what reviews the next pull request. | |
| # Nothing else gates that, so this does. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: shell scripts parse | |
| run: | | |
| for f in runner/bin/*.sh; do bash -n "$f" || exit 1; done | |
| - name: python compiles | |
| run: python3 -m compileall -q runner/bin runner/tests | |
| - name: repos.json is valid | |
| run: python3 -c "import json; json.load(open('repos.json'))" | |
| - name: unit tests | |
| run: | | |
| fail=0 | |
| for t in runner/tests/test_*.py; do | |
| echo "--- $t" | |
| python3 "$t" -v || fail=1 | |
| done | |
| exit $fail |