perf(ci): parallelize Python tests and shorten the macOS Rust job (#8628)