Skip to content

Commit

Permalink
Add Github action build_and_test_macos
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-vv committed Oct 27, 2024
1 parent fe99f58 commit 33b6cc4
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
with:
name: source-distribution
path: dist/*.tar.gz

build_and_test_windows:
runs-on: windows-latest
steps:
Expand All @@ -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
Expand Down

0 comments on commit 33b6cc4

Please sign in to comment.