Skip to content

Added new test-all workflow for Linux/Mac/Windows #1

Added new test-all workflow for Linux/Mac/Windows

Added new test-all workflow for Linux/Mac/Windows #1

Workflow file for this run

name: Test On All Platforms
on:
push:
branches:
- "**" # All branches
tags:
- "v*-test" # e.g. v1.2.3-test
- "v[0-9]+.[0-9]+.[0-9]+" # e.g. v1.2.3
workflow_dispatch:
jobs:
test:
name: Test ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Install uv and set Python version
uses: astral-sh/setup-uv@v5
with:
version: "0.7.5"
python-version: ${{ matrix.python-version }}
- name: Install libusb on Linux
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libusb-1.0-0-dev libudev-dev
- name: Install dependencies
run: |
uv venv
uv sync --all-extras
- name: Run tests
run: |
uv run pytest