-
-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (53 loc) · 1.45 KB
/
python.yml
File metadata and controls
64 lines (53 loc) · 1.45 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
---
name: Python CI Tests
on: # yamllint disable-line rule:truthy
push:
branches: ['main']
pull_request:
# The branches below must be a subset of the branches above
branches: ['main']
workflow_dispatch:
env:
LOG_LEVEL: INFO
jobs:
build:
name: 'Run CI'
strategy:
fail-fast: false
matrix:
os: ['ubuntu-24.04', 'macos-14', 'windows-2022']
python: ['3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
pip3 install -r requirements.txt
- name: Lint (pylint)
run: |
pylint --verbose --recursive yes src/
- name: Lint (flake8)
run: |
python3 -m flake8 --verbose src/
- name: Lint (pyright) static type checker
run: |
python3 -m pyright --verbose src/
- name: Styling (pycodestyle)
run: |
python3 -m pycodestyle --statistics src/
- name: Styling (autopep8)
run: |
python3 -m autopep8 --diff --recursive --exit-code --verbose .
- name: Test
run: >
coverage run -m pytest --verbose
-o log_cli=true
--log-cli-level=INFO
src/
- name: Coverage
run: |
coverage report