uses: ./.github/workflows/reusable-macos.yml
with:
config_hash: ${{ needs.check_source.outputs.config_hash }}
- # macos-14 is M1, macos-13 is Intel
- os-matrix: '["macos-14", "macos-13"]'
+ # Cirrus is M1, macos-13 is default GHA Intel
+ os-matrix: '["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-13"]'
build_macos_free_threading:
name: 'macOS (free-threading)'
with:
config_hash: ${{ needs.check_source.outputs.config_hash }}
free-threading: true
- # macos-14-large is Intel with 12 cores (most parallelism)
- os-matrix: '["macos-14"]'
+ # Cirrus is M1
+ os-matrix: '["ghcr.io/cirruslabs/macos-runner:sonoma"]'
build_ubuntu:
name: 'Ubuntu'
from unittest.mock import MagicMock, call, patch, ANY
from .support import handle_all_events, code_to_events
+
try:
from _pyrepl.console import Event
from _pyrepl.unix_console import UnixConsole
except ImportError:
pass
+
def unix_console(events, **kwargs):
console = UnixConsole()
console.get_event = MagicMock(side_effect=events)
_os_write.assert_any_call(ANY, b"4")
con.restore()
-
def test_cursor_left(self, _os_write):
code = "1"
events = itertools.chain(