-
Notifications
You must be signed in to change notification settings - Fork 55
69 lines (65 loc) · 1.82 KB
/
support.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
60
61
62
63
64
65
66
67
68
69
---
# linting and formatting for support code that is not part of the project
name: stratisd support CI
# yamllint disable-line rule:truthy
on:
push:
branches:
- master
paths:
- ".packit.yaml"
- "plans/**"
- "tests-fmf/**"
- "**/*.yml"
- "tests/**"
- "!tests/**/README.*"
pull_request:
branches:
- master
paths:
- ".packit.yaml"
- "plans/**"
- "tests-fmf/**"
- "**/*.yml"
- "tests/**"
- "!tests/**/README.*"
workflow_dispatch:
# cancel the in-progress workflow when PR is refreshed.
# yamllint disable rule:line-length
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
support-checks:
strategy:
matrix:
include:
- dependencies: >
pylint
python3-dbus-client-gen
python3-dbus-python-client-gen
python3-justbytes
python3-psutil
python3-pyudev
python3-semantic_version
task: PYTHONPATH=./src make -f Makefile lint
working-directory: ./tests/client-dbus
- dependencies: black python3-isort
task: make -f Makefile fmt-ci
working-directory: ./tests/client-dbus
- dependencies: yamllint tmt
task: make -f Makefile yamllint tmtlint
working-directory: .
runs-on: ubuntu-22.04
container: fedora:40 # CURRENT DEVELOPMENT ENVIRONMENT
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: >
dnf install -y
make
ncurses
${{ matrix.dependencies }}
- name: Run test
run: ${{ matrix.task }}
working-directory: ${{ matrix.working-directory }}