File tree 4 files changed +84
-24
lines changed
4 files changed +84
-24
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Prettier JSON Lint
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
+ jobs :
13
+ json-lint :
14
+ name : ' Prettier JSON Lint'
15
+ runs-on : ['ubuntu-24.04']
16
+ steps :
17
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18
+
19
+ - name : Set up Node.js
20
+ uses : actions/setup-node@v4
21
+ with :
22
+ node-version : 24.x
23
+
24
+ - name : Install Prettier
25
+ run : |
26
+
27
+
28
+ - name : Prettier LINT / Style JSON
29
+ run : >
30
+ prettier --check ./src/**/*.json
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
Original file line number Diff line number Diff line change @@ -67,28 +67,26 @@ dependencies:
67
67
${PACKAGE_TOOL} install -r requirements.txt
68
68
@echo " ################################################################################"
69
69
70
+ lint/json :
71
+ prettier --check ./src/** /* .json
72
+
70
73
lint/markdown :
71
74
markdownlint ' **/*.md' --ignore node_modules && echo ' ✔ Your code looks good.'
75
+
72
76
lint/yaml :
73
77
yamllint --stric . && echo ' ✔ Your code looks good.'
74
78
75
- lint : lint/markdown lint/yaml test/styling test/static
79
+ lint : lint/markdown lint/yaml lint/json test/styling test/static
76
80
77
81
test/static : dependencies
78
82
${RUNTIME_TOOL} -m pylint --verbose --recursive yes src/
79
83
${RUNTIME_TOOL} -m flake8 --verbose src/
80
84
${RUNTIME_TOOL} -m pyright --verbose src/
81
85
82
-
83
- test/styling/json : dependencies
84
- prettier --check ./src/** /* .json
85
-
86
- test/styling/sources : dependencies
86
+ test/styling : dependencies
87
87
${RUNTIME_TOOL} -m pycodestyle --statistics src/
88
88
${RUNTIME_TOOL} -m autopep8 --diff --recursive --exit-code --verbose .
89
89
90
- test/styling : dependencies test/styling/sources test/styling/json
91
-
92
90
format/json :
93
91
prettier --write ./src/** /* .json
94
92
You can’t perform that action at this time.
0 commit comments