-
Notifications
You must be signed in to change notification settings - Fork 38
41 lines (36 loc) · 1012 Bytes
/
ulwgl-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
name: ULWGL-launcher workflow
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.10", "3.11", "3.12"]
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
- name: Lint ulwgl_*.py files with Ruff
run: |
pip install ruff
ruff --output-format github ulwgl_*.py
- name: Test with unittest
if: matrix.python-version == 3.10
run: python3 ulwgl_test.py
- name: Test with unittest
if: matrix.python-version == 3.11 || matrix.python-version == 3.12
run: python3 ulwgl_test.py
run: python3 ulwgl_test_plugins.py