forked from gvalkov/python-evdev
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 711 Bytes
/
test.yml
File metadata and controls
29 lines (25 loc) · 711 Bytes
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
name: Test
on:
- push
- pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run pytest tests
# pip install -e . builds _ecodes and such into the evdev directory
# sudo required to write to uinputs
run: |
sudo python -m pip install pytest setuptools
sudo python -m pip install -e .
sudo python -m pytest tests