-
Notifications
You must be signed in to change notification settings - Fork 4
105 lines (101 loc) · 2.99 KB
/
main.yml
File metadata and controls
105 lines (101 loc) · 2.99 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
name: into-dbus-python CI
# yamllint disable-line rule:truthy
on:
push:
branches: [master]
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
development_environment_checks:
strategy:
matrix:
include:
- dependencies: black python3-isort
task: make -f Makefile fmt-travis
- dependencies: yamllint
task: make -f Makefile yamllint
- dependencies: >
libatomic
pylint
python3-dbus
python3-dbus-signature-pyparsing
python3-hypothesis
python3-setuptools
task: >
PATH=${PATH}:/github/home/.local/bin
PYTHONPATH=./src make -f Makefile lint
- dependencies: >
python3-dbus
python3-dbus-signature-pyparsing
python3-hypothesis
task: PYTHONPATH=./src make -f Makefile test
- dependencies: >
python3-coverage
python3-dbus
python3-dbus-signature-pyparsing
python3-hypothesis
task: PYTHONPATH=./src make -f Makefile coverage
- dependencies: python python3-build twine
task: make -f Makefile package
runs-on: ubuntu-latest
container: fedora:43 # CURRENT DEVELOPMENT ENVIRONMENT
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install dependencies
run: >
dnf install -y
make
pip
${{ matrix.dependencies }}
- name: Install hs-dbus-signature
run: pip install --user hs-dbus-signature
- name: Install pyright
run: pip install --user pyright
- name: ${{ matrix.task }}
run: ${{ matrix.task }}
lowest_supported_python:
strategy:
matrix:
include:
- dependencies: >
python3-dbus
python3-dbus-signature-pyparsing
python3-hypothesis
task: PYTHONPATH=./src make -f Makefile test
runs-on: ubuntu-latest
container: fedora:43 # CURRENT DEVELOPMENT ENVIRONMENT
steps:
- name: Install python3.12
run: >
dnf install -y
alternatives
python3.12
- name: Set python3 to python3.12
run: >
alternatives
--install /usr/bin/python3
python3
/usr/bin/python3.12
10
- name: Display Python version
run: python3 --version
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install dependencies
run: >
dnf install -y
make
pip
${{ matrix.dependencies }}
- name: Install pyright
run: pip install --user pyright
- name: Install hs-dbus-signature
run: pip install --user hs-dbus-signature
- name: ${{ matrix.task }}
run: ${{ matrix.task }}