Skip to content

Commit 26aaa55

Browse files
committed
Add pytest step
1 parent c33d52e commit 26aaa55

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-latest]
14+
python-version: ["3.12"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Check for pylint errors
24+
# pip install -e . builds _ecodes and such into the evdev directory
25+
run: |
26+
python -m pip install setuptools
27+
python -m pip install -e .
28+
python -m pytest tests

0 commit comments

Comments
 (0)