@@ -17,49 +17,49 @@ jobs:
1717 python-version : ["3.11", "3.12", "3.13"]
1818
1919 steps :
20- - name : Checkout repo with submodules
21- uses : actions/checkout@v4
22- with :
23- fetch-depth : 0
24- submodules : recursive
25- persist-credentials : true
26- token : ${{ secrets.GITHUB_TOKEN }}
20+ - name : Checkout repo with submodules
21+ uses : actions/checkout@v4
22+ with :
23+ fetch-depth : 0
24+ submodules : recursive
25+ persist-credentials : true
26+ token : ${{ secrets.GITHUB_TOKEN }}
2727
28- - name : Sync and update FracturedJson submodule to tip of main
29- run : |
30- set -euo pipefail
31- # Ensure .gitmodules remotes are in sync and initialize submodules
32- git submodule sync --recursive
33- git submodule update --init --recursive
28+ - name : Sync and update FracturedJson submodule to tip of main
29+ run : |
30+ set -euo pipefail
31+ # Ensure .gitmodules remotes are in sync and initialize submodules
32+ git submodule sync --recursive
33+ git submodule update --init --recursive
3434
35- # Force FracturedJson to origin/main (robust for shallow clones)
36- if [ -d "FracturedJson" ]; then
37- pushd FracturedJson
38- git fetch --no-tags origin main
39- if git rev-parse --verify origin/main >/dev/null 2>&1; then
40- git checkout -B main origin/main
41- git reset --hard origin/main
35+ # Force FracturedJson to origin/main (robust for shallow clones)
36+ if [ -d "FracturedJson" ]; then
37+ pushd FracturedJson
38+ git fetch --no-tags origin main
39+ if git rev-parse --verify origin/main >/dev/null 2>&1; then
40+ git checkout -B main origin/main
41+ git reset --hard origin/main
42+ else
43+ echo "ERROR: origin/main not found for FracturedJson"
44+ git show-ref || true
45+ exit 1
46+ fi
47+ popd
4248 else
43- echo "ERROR: origin/main not found for FracturedJson"
44- git show-ref || true
49+ echo "ERROR: FracturedJson directory not found after init"
4550 exit 1
4651 fi
47- popd
48- else
49- echo "ERROR: FracturedJson directory not found after init"
50- exit 1
51- fi
52-
53- - name : Install uv and set the python version
54- uses : astral-sh/setup-uv@v5
55- with :
56- python-version : ${{ matrix.python-version }}
52+
53+ - name : Install uv and set the python version
54+ uses : astral-sh/setup-uv@v5
55+ with :
56+ python-version : ${{ matrix.python-version }}
5757
58- - name : Install the project
59- run : uv sync --locked --all-extras --dev
58+ - name : Install the project
59+ run : uv sync --locked --all-extras --dev
6060
61- - name : Build FracturedJson binaries
62- run : uv run python3 src/build/build_binaries.py
61+ - name : Build FracturedJson binaries
62+ run : uv run python3 src/build/build_binaries.py
6363
64- - name : Run tests
65- run : uv run pytest
64+ - name : Run tests
65+ run : uv run pytest
0 commit comments