Linux #64
This file contains hidden or 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: Linux | |
on: | |
push: | |
tags: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
test-on-linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
name: Test BusyLight For Humans ${{ matrix.python-version }} on Linux | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv and set the Python version. | |
uses: astral-sh/setup-uv@5 | |
with: | |
version: "0.7.5" | |
python-version: ${{ matrix.python-version }} | |
- name: Install libusb | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libusb-1.0-0-dev libudev-dev | |
- name: Create venv and install package & deps. | |
run: | | |
uv venv | |
uv sync --all-extras | |
- name: Test with pytest | |
run: | | |
uv run pytest |