Skip to content

Commit

Permalink
[CI] Switch to macos-latest (#12897)
Browse files Browse the repository at this point in the history
macos-12 is deprecated and will be removed:
actions/runner-images#10721
  • Loading branch information
srittau authored Oct 24, 2024
1 parent 1018323 commit 701cd06
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 43 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# various modules aren't available on macos-13 and higher
os: ["ubuntu-latest", "windows-latest", "macos-12"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
fail-fast: false

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/stubtest_stdlib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# various modules aren't available on macos-13 and higher
os: ["ubuntu-latest", "windows-latest", "macos-12"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
fail-fast: false

Expand Down
10 changes: 10 additions & 0 deletions stdlib/@tests/stubtest_allowlists/darwin-py310.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@ spwd
_msi
msilib(.[a-z]+)?
ossaudiodev

# Added in Python 3.10.12
tarfile.TarInfo.replace

# Added in Python 3.10.15
email._header_value_parser.NLSET
email._header_value_parser.SPECIALSNL
email.errors.HeaderWriteError
email.utils.getaddresses
email.utils.parseaddr
13 changes: 0 additions & 13 deletions stdlib/@tests/stubtest_allowlists/darwin-py311.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
webbrowser.MacOSX.__init__

# These entries looks like a `setup-python` bug:
(dbm.gnu)?
(_?locale.bind_textdomain_codeset)?
(_?locale.bindtextdomain)?
(_?locale.dcgettext)?
(_?locale.dgettext)?
(_?locale.gettext)?
(_?locale.textdomain)?

# Doesn't exist on macos:
spwd
_msi
Expand All @@ -27,7 +18,3 @@ email._header_value_parser.SPECIALSNL
email.errors.HeaderWriteError
email.utils.getaddresses
email.utils.parseaddr

# not available on python distributions compiled without sqlite3 loadable extension support
_sqlite3.Connection.load_extension
_sqlite3.Connection.enable_load_extension
13 changes: 0 additions & 13 deletions stdlib/@tests/stubtest_allowlists/darwin-py312.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
webbrowser.MacOSX.__init__

# These entries looks like a `setup-python` bug:
(dbm.gnu)?
(_?locale.bind_textdomain_codeset)?
(_?locale.bindtextdomain)?
(_?locale.dcgettext)?
(_?locale.dgettext)?
(_?locale.gettext)?
(_?locale.textdomain)?

# Doesn't exist on macos:
spwd
_msi
Expand All @@ -19,7 +10,3 @@ ossaudiodev
fcntl.F_OFD_GETLK
fcntl.F_OFD_SETLK
fcntl.F_OFD_SETLKW

# not available on python distributions compiled without sqlite3 loadable extension support
_sqlite3.Connection.load_extension
_sqlite3.Connection.enable_load_extension
13 changes: 0 additions & 13 deletions stdlib/@tests/stubtest_allowlists/darwin-py313.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,3 @@ _?curses.window.get_wch

# Exists locally on MacOS but not on GitHub
(mmap.MAP_32BIT)?

# These entries looks like a `setup-python` bug:
(dbm.gnu)?
(_?locale.bind_textdomain_codeset)?
(_?locale.bindtextdomain)?
(_?locale.dcgettext)?
(_?locale.dgettext)?
(_?locale.gettext)?
(_?locale.textdomain)?

# not available on python distributions compiled without sqlite3 loadable extension support
_sqlite3.Connection.load_extension
_sqlite3.Connection.enable_load_extension
7 changes: 7 additions & 0 deletions stdlib/@tests/stubtest_allowlists/darwin-py38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ spwd
_msi
msilib(.[a-z]+)?
ossaudiodev

# Added in Python 3.8.14
sys.set_int_max_str_digits
sys.get_int_max_str_digits

# Added in Python 3.8.17
tarfile.TarInfo.replace
14 changes: 14 additions & 0 deletions stdlib/@tests/stubtest_allowlists/darwin-py39.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,17 @@ spwd
_msi
msilib(.[a-z]+)?
ossaudiodev

# Added in Python 3.9.14
sys.set_int_max_str_digits
sys.get_int_max_str_digits

# Added in Python 3.9.17
tarfile.TarInfo.replace

# Added in Python 3.9.20
email._header_value_parser.NLSET
email._header_value_parser.SPECIALSNL
email.errors.HeaderWriteError
email.utils.getaddresses
email.utils.parseaddr
13 changes: 13 additions & 0 deletions stdlib/@tests/stubtest_allowlists/darwin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,16 @@ curses.COLORS # Initialized after start_color
curses.COLOR_PAIRS # Initialized after start_color
curses.COLS # Initialized only after initscr call
curses.LINES # Initialized only after initscr call

# These entries looks like a `setup-python` bug:
(dbm.gnu)?
(_?locale.bind_textdomain_codeset)?
(_?locale.bindtextdomain)?
(_?locale.dcgettext)?
(_?locale.dgettext)?
(_?locale.gettext)?
(_?locale.textdomain)?

# Not available on python distributions compiled without sqlite3 loadable extension support
_sqlite3.Connection.load_extension
_sqlite3.Connection.enable_load_extension
1 change: 1 addition & 0 deletions stdlib/@tests/stubtest_allowlists/win32-py310.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Added in Python 3.10.12
tarfile.TarInfo.replace

# pathlib methods that exist on Windows, but always raise NotImplementedError,
Expand Down
1 change: 1 addition & 0 deletions stdlib/@tests/stubtest_allowlists/win32-py38.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Added in Python 3.8.17
tarfile.TarInfo.replace

# ==========
Expand Down
1 change: 1 addition & 0 deletions stdlib/@tests/stubtest_allowlists/win32-py39.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Added in Python 3.9.17
tarfile.TarInfo.replace

# pathlib methods that exist on Windows, but always raise NotImplementedError,
Expand Down

0 comments on commit 701cd06

Please sign in to comment.