Debian Codegraph @

.github/workflows/main.yml

raw symbols SCIP
1 ---
2 name: pyudev CI
3
4 # yamllint disable-line rule:truthy
5 on:
6 push:
7 branches: [master]
8 pull_request:
9 branches: [master]
10
11 # Allows you to run this workflow manually from the Actions tab
12 workflow_dispatch:
13
14
15 jobs:
16 python-checks:
17 strategy:
18 matrix:
19 include:
20 # MANDATORY CHECKS USING CURRENT DEVELOPMENT INTERPRETER
21 - python-version: "3.12"
22 dependencies: pytest hypothesis
23 task: PYTHONPATH=./src make -f Makefile test-travis
24 # MANDATORY CHECKS USING LOWEST SUPPORTED INTERPRETER
25 - python-version: "3.10"
26 dependencies: pytest hypothesis
27 task: PYTHONPATH=./src make -f Makefile test-travis
28 # MANDATORY CHECKS USING PYPY INTERPRETER
29 - python-version: pypy-3.9
30 dependencies: pytest hypothesis
31 task: PYTHONPATH=./src make -f Makefile test-travis
32 runs-on: ubuntu-latest
33 steps:
34 - uses: actions/checkout@v5
35 with:
36 persist-credentials: false
37 - uses: actions/setup-python@v4
38 with:
39 python-version: ${{ matrix.python-version }}
40 - name: Install dependencies
41 run: |
42 sudo apt-get -q update
43 sudo apt-get -y install libudev-dev
44 - name: Install dependencies
45 run: pip3 install ${{ matrix.dependencies }}
46 - name: Run test
47 run: ${{ matrix.task }}
48
49 development_environment_checks:
50 strategy:
51 matrix:
52 include:
53 - dependencies: black python3-isort
54 task: fmt-travis
55 - dependencies: yamllint
56 task: yamllint
57 - dependencies: python python3-build twine
58 task: package
59 - dependencies: pylint python3-setuptools
60 task: lint
61 runs-on: ubuntu-latest
62 container: fedora:41 # CURRENT DEVELOPMENT ENVIRONMENT
63 steps:
64 - uses: actions/checkout@v5
65 with:
66 persist-credentials: false
67 - name: Install dependencies
68 run: >
69 dnf install -y
70 make
71 ${{ matrix.dependencies }}
72 - name: Run test
73 run: make -f Makefile ${{ matrix.task }}