From 33b6cc43ffcb6c3eda657a953924565d47f53016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20van=20Velzen?= Date: Sun, 27 Oct 2024 18:10:13 +0100 Subject: [PATCH] Add Github action build_and_test_macos --- .github/workflows/build-and-test.yaml | 28 ++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 11a86a4..49f8dcc 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -44,7 +44,7 @@ jobs: with: name: source-distribution path: dist/*.tar.gz - + build_and_test_windows: runs-on: windows-latest steps: @@ -71,6 +71,32 @@ jobs: with: name: windows-wheel path: dist/*.whl + + build_and_test_macos: + runs-on: macos-12 + 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@v3 + with: + name: macos-wheel + path: dist/*.whl upload_ubuntu: needs: build_and_test_ubuntu