ui: move ui_async to common.py #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7, 3.12] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Ubuntu dependencies | |
run: | | |
sudo apt update | |
sudo apt install libdbus-1-dev libglib2.0-dev | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e ."[test]" | |
- name: Run tests on Ubuntu | |
run: | | |
pytest --cov=lib/ tests/ | |
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 gtk+3 pygobject3 | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ."[test]" | |
- name: Run tests on macOS | |
run: | | |
pytest --cov=lib/ tests/ |