Skip to content

Commit

Permalink
Setup macOS tests using GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHag committed Feb 14, 2024
1 parent fb5b7e0 commit 664f41c
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,37 @@ jobs:
python -m pip install --upgrade pip
pip install -e .[test]
- name: Run tests
- name: Run tests on Ubuntu
run: |
pytest
macos-build:
runs-on: macos-latest

strategy:
matrix:
python-version: [3.7, 3.12]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}

- name: Set up macOS dependencies
run: |
brew install hidapi dbus gtk+3 pygobject3
brew services start dbus
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install ."[test]"
- name: Run tests on macOS
run: |
pytest

0 comments on commit 664f41c

Please sign in to comment.