-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (56 loc) · 1.55 KB
/
main.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
55
56
57
58
59
---
name: testing CI
# yamllint disable-line rule:truthy
on:
push:
branches:
- master
paths-ignore:
- 'CHANGES.txt'
- 'README.md'
pull_request:
branches:
- master
paths-ignore:
- 'CHANGES.txt'
- 'README.md'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
python-checks:
strategy:
matrix:
include:
# MANDATORY CHECKS USING CURRENT DEVELOPMENT INTERPRETER
- dependencies: >
pylint
python3-dbus
python3-dbus-python-client-gen
python3-justbytes
python3-gobject
python3-psutil
image: fedora:41 # CURRENT DEVELOPMENT ENVIRONMENT
task: PYTHONPATH=./src make -f Makefile lint
- dependencies: >
black
python3-isort
image: fedora:41 # CURRENT DEVELOPMENT ENVIRONMENT
task: make -f Makefile fmt-travis
# VERIFICATION OF TEST INFRASTRUCTURE
- dependencies: yamllint
image: fedora:41 # CURRENT DEVELOPMENT ENVIRONMENT
task: make -f Makefile yamllint
runs-on: ubuntu-latest
container: ${{ matrix.image }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: >
dnf install -y
make
python-unversioned-command
${{ matrix.dependencies }}
- name: Display Python version
run: python --version
- name: Run test
run: ${{ matrix.task }}