Skip to content

Support numeric Jacobians #12

Support numeric Jacobians

Support numeric Jacobians #12

name: Check Transpilation
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-transpilation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install uv
uv pip install --system -e ".[dev]"
- name: Run transpiler
run: |
python transpile_py310.py
- name: Check for changes
run: |
# Check if there are any changes to the transpiled files
if ! git diff --quiet src/jaxls/_py310/; then
echo "Error: Transpiled code is out of date!"
echo "Changes detected:"
git diff --stat src/jaxls/_py310/
echo ""
echo "Differences:"
git diff src/jaxls/_py310/
echo ""
echo "Please run: python transpile_py310.py"
exit 1
fi
echo "Transpiled code is up to date!"