diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 11a86a4..0595d87 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -71,6 +71,32 @@ jobs: with: name: windows-wheel path: dist/*.whl + + build_and_test_macos: + runs-on: macos-10.15 + 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