From f9cdb7228126d95c20e185d9700c790accea57b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20van=20Velzen?= Date: Tue, 29 Oct 2024 22:02:59 +0100 Subject: [PATCH] Add build_and_test_macos_arm --- .github/workflows/build-and-test.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 91852e8..e1f28a9 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -97,4 +97,31 @@ jobs: with: name: macos-wheel path: dist/*.whl + + build_and_test_macos_arm: + runs-on: macos-14 + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.8" + - name: Install dependencies + run: | + pip install --upgrade setuptools wheel + - name: Build the wheel + run: python setup.py bdist_wheel + - name: Install the wheel + run: | + pip install dist/*.whl + pip show traceon + - name: Run tests + run: python -m unittest tests/*.py + - name: Upload wheel artifact + uses: actions/upload-artifact@v4 + with: + name: macos-arm-wheel + path: dist/*.whl +