Add Codex compatibility plugin and migration guide #25
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: syntax | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| shell: | |
| name: bash syntax | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: bash -n on every .sh | |
| run: | | |
| set -e | |
| fail=0 | |
| while IFS= read -r f; do | |
| if ! bash -n "$f"; then | |
| echo "::error file=$f::syntax error" | |
| fail=1 | |
| fi | |
| done < <(find . -name '*.sh' -not -path './.git/*') | |
| exit $fail | |
| python: | |
| name: python syntax | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: py_compile every .py | |
| run: | | |
| set -e | |
| fail=0 | |
| while IFS= read -r f; do | |
| if ! python3 -m py_compile "$f"; then | |
| echo "::error file=$f::syntax error" | |
| fail=1 | |
| fi | |
| done < <(find . -name '*.py' -not -path './.git/*') | |
| exit $fail |