-
Notifications
You must be signed in to change notification settings - Fork 36
54 lines (49 loc) · 1.4 KB
/
umu-python.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: umu-launcher
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
# tomllib requires Python 3.11
# Ubuntu latest (Jammy) provides Python 3.10
version: ["3.11", "3.12", "3.13"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install ruff
pip install python-xlib
pip install filelock
pip install uv
- name: Lint umu_*.py files with Ruff
run: |
pip install ruff
ruff check --output-format github ./umu/umu_*.py
- name: Setup venv
run: |
uv venv --python $pyver
source .venv/bin/activate
uv pip install -r requirements.in
env:
pyver: ${{ matrix.version }}
- name: Test with unittest
run: |
source .venv/bin/activate
python3 ./umu/umu_test.py
- name: Test with unittest for plugins
if: ${{ matrix.version == '3.11' || matrix.version == '3.12' || matrix.version == '3.13' }}
run: |
source .venv/bin/activate
python3 ./umu/umu_test_plugins.py