Skip to content

Add Codex compatibility plugin and migration guide #25

Add Codex compatibility plugin and migration guide

Add Codex compatibility plugin and migration guide #25

Workflow file for this run

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