-
Notifications
You must be signed in to change notification settings - Fork 25
37 lines (34 loc) · 1009 Bytes
/
pytest-linux.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Linux
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
test-on-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
name: Test BusyLight For Humans ${{ matrix.python-version }} on Linux
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
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: Install pip/poetry/pytest
run: |
python -m pip install --upgrade pip
pip install poetry pytest
- name: Install Busylight-For-Humans with WebAPI
run: |
poetry install -E webapi
- name: Test with pytest
run: |
poetry run pytest