Repository: ast-grep/ast-grep (language: rust)

Issue:
[bug] Missing macOS build for Python 3.10
Hi there!

It would be nice to have build of `ast-grep-py` for macOS and Python 3.10


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/pyo3.yml b/.github/workflows/pyo3.yml
index 620a48e09e..d831bb7139 100644
--- a/.github/workflows/pyo3.yml
+++ b/.github/workflows/pyo3.yml
@@ -94,8 +94,7 @@ jobs:
           path: crates/pyo3/dist
 
   macos:
-    # use old macos due to https://github.com/actions/setup-python/issues/852
-    runs-on: macos-13
+    runs-on: macos-latest
     strategy:
       matrix:
         target: [x86_64, aarch64]
@@ -114,7 +113,7 @@ jobs:
           args: --release --out dist --find-interpreter
           working-directory: crates/pyo3
       - name: Test sdist
-        if: matrix.target == 'x86_64'
+        if: matrix.target == 'aarch64'
         run: |
           pip install pytest
           pip install --no-index --find-links=dist ${{env.PACKAGE_NAME}} --force-reinstall


Test patch: