Change CI to use macos-13
for Python 3.8 and 3.9
#9305
Merged
macos-13
for Python 3.8 and 3.9
#9305