Skip to content

Commit 9fdf489

Browse files
committed
Added new test-all workflow for Linux/Mac/Windows
1 parent f95bea9 commit 9fdf489

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/test-all.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test On All Platforms
2+
3+
on:
4+
push:
5+
branches:
6+
- "**" # All branches
7+
tags:
8+
- "v*-test" # e.g. v1.2.3-test
9+
- "v[0-9]+.[0-9]+.[0-9]+" # e.g. v1.2.3
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
name: Test ${{ matrix.python-version }} on ${{ matrix.os }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-latest, macos-latest, windows-latest]
20+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Install uv and set Python version
26+
uses: astral-sh/setup-uv@v5
27+
with:
28+
version: "0.7.5"
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Install libusb on Linux
32+
if: runner.os == 'Linux'
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install -y libusb-1.0-0-dev libudev-dev
36+
37+
- name: Install dependencies
38+
run: |
39+
uv venv
40+
uv sync --all-extras
41+
42+
- name: Run tests
43+
run: |
44+
uv run pytest

0 commit comments

Comments
 (0)