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 e514891
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e514891

Please sign in to comment.