@@ -293,7 +293,10 @@ jobs:
293293 runs-on : ${{ matrix.os }}
294294 strategy :
295295 matrix :
296- os : [macos-latest, ubuntu-latest, windows-2025]
296+ os :
297+ - macos-latest
298+ - ubuntu-latest
299+ - windows-2025
297300 fail-fast : false
298301 steps :
299302 - uses : actions/checkout@v6.0.2
@@ -302,18 +305,14 @@ jobs:
302305 - uses : actions/setup-python@v6.2.0
303306 with :
304307 python-version : ${{ env.PYTHON_VERSION }}
308+
305309 - name : Set up the Mac environment
306310 run : brew install autoconf automake libtool openssl@3
307311 if : runner.os == 'macOS'
312+
308313 - name : build rustpython
309- run : cargo build --release --verbose --features=threading ${{ env.CARGO_ARGS }}
310- if : runner.os == 'macOS'
311- - name : build rustpython
312- run : cargo build --release --verbose --features=threading ${{ env.CARGO_ARGS }},jit
313- if : runner.os != 'macOS'
314- - uses : actions/setup-python@v6.2.0
315- with :
316- python-version : ${{ env.PYTHON_VERSION }}
314+ run : cargo build --release --verbose --features=threading,jit ${{ env.CARGO_ARGS }}
315+
317316 - name : run snippets
318317 run : python -m pip install -r requirements.txt && pytest -v
319318 working-directory : ./extra_tests
@@ -445,14 +444,10 @@ jobs:
445444 run : |
446445 target/release/rustpython -m venv testvenv
447446 testvenv/bin/rustpython -m pip install wheel
448- - if : runner.os != 'macOS'
449- name : Check whats_left is not broken
450- shell : bash
451- run : python -I scripts/whats_left.py --no-default-features --features "$(sed -e 's/--[^ ]*//g' <<< "${{ env.CARGO_ARGS }}" | tr -d '[:space:]'),threading,jit"
452- - if : runner.os == 'macOS' # TODO fix jit on macOS
453- name : Check whats_left is not broken (macOS)
447+
448+ - name : Check whats_left is not broken
454449 shell : bash
455- run : python -I scripts/whats_left.py --no-default-features --features "$(sed -e 's/--[^ ]*//g' <<< "$ {{ env.CARGO_ARGS }}" | tr -d '[:space:]'),threading" # no jit on macOS for now
450+ run : python -I scripts/whats_left.py $ {{ env.CARGO_ARGS }} --features jit
456451
457452 lint :
458453 name : Lint Rust & Python code
0 commit comments