File tree Expand file tree Collapse file tree 2 files changed +48
-16
lines changed Expand file tree Collapse file tree 2 files changed +48
-16
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- name : Python CI Tests
2
+ name : Python CI Lint
3
3
4
4
on : # yamllint disable-line rule:truthy
5
5
push :
@@ -9,12 +9,9 @@ on: # yamllint disable-line rule:truthy
9
9
branches : ['main']
10
10
workflow_dispatch :
11
11
12
- env :
13
- LOG_LEVEL : INFO
14
-
15
12
jobs :
16
- build :
17
- name : ' Run CI'
13
+ lint :
14
+ name : ' Python CI Lint '
18
15
strategy :
19
16
fail-fast : false
20
17
matrix :
52
49
- name : Styling (autopep8)
53
50
run : |
54
51
python3 -m autopep8 --diff --recursive --exit-code --verbose .
55
- - name : Test
56
- run : >
57
- coverage run -m pytest --verbose
58
- -o log_cli=true
59
- --log-cli-level=INFO
60
- src/
61
-
62
- - name : Coverage
63
- run : |
64
- coverage report
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Python CI Test
3
+
4
+ on : # yamllint disable-line rule:truthy
5
+ push :
6
+ branches : ['main']
7
+ pull_request :
8
+ # The branches below must be a subset of the branches above
9
+ branches : ['main']
10
+ workflow_dispatch :
11
+
12
+ env :
13
+ LOG_LEVEL : INFO
14
+
15
+ jobs :
16
+ test :
17
+ name : ' Python CI Test'
18
+ strategy :
19
+ fail-fast : false
20
+ matrix :
21
+ os : ['ubuntu-24.04', 'macos-14', 'windows-2022']
22
+ python : ['3.10', '3.11', '3.12']
23
+ runs-on : ${{ matrix.os }}
24
+ steps :
25
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
26
+
27
+ - name : Setup Python
28
+ uses : actions/setup-python@master
29
+ with :
30
+ python-version : ${{ matrix.python }}
31
+
32
+ - name : Install
33
+ run : |
34
+ pip3 install -r requirements.txt
35
+
36
+ - name : Test
37
+ run : >
38
+ coverage run -m pytest --verbose
39
+ -o log_cli=true
40
+ --log-cli-level=INFO
41
+ src/
42
+
43
+ - name : Coverage
44
+ run : |
45
+ coverage report
You can’t perform that action at this time.
0 commit comments