FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cppcheck/.github/workflows/scriptcheck.yml at 6363 · devzero2000/cppcheck · GitHub
devzero2000
/
cppcheck
Public
forked from
cppcheck-opensource/cppcheck
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cppcheck
/
.github
/
workflows
/
scriptcheck.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
110 lines (90 loc) · 3.28 KB
Breadcrumbs
cppcheck
/
.github
/
workflows
/
scriptcheck.yml
Copy path
File metadata and controls
110 lines (90 loc) · 3.28 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
106
107
108
109
#
Syntax reference https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
#
Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name
:
scriptcheck
on
:
[push, pull_request]
jobs
:
build
:
runs-on
:
ubuntu-20.04
strategy
:
matrix
:
python-version
:
[2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
fail-fast
:
false
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install missing software on ubuntu
run
:
|
sudo apt-get update
sudo apt-get install tidy libxml2-utils
-
name
:
Install missing software on ubuntu (Python 2)
if
:
matrix.python-version == '2.7'
run
:
|
python -m pip install pip --upgrade
python -m pip install pytest
python -m pip install pygments
-
name
:
Install missing software on ubuntu (Python 3)
if
:
matrix.python-version != '2.7'
run
:
|
sudo apt-get install shellcheck
python -m pip install pip --upgrade
python -m pip install natsort
python -m pip install pexpect
python -m pip install pylint
python -m pip install unittest2
python -m pip install pytest
python -m pip install pygments
python -m pip install requests
python -m pip install psutil
-
name
:
run Shellcheck
if
:
matrix.python-version == '3.9'
run
:
|
find . -name "*.sh" | xargs shellcheck --exclude SC2002,SC2013,SC2034,SC2035,SC2043,SC2046,SC2086,SC2089,SC2090,SC2129,SC2211,SC2231
-
name
:
run pylint
if
:
matrix.python-version == '3.9'
run
:
|
pylint --rcfile=pylintrc_travis addons/*.py
pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
pylint --rcfile=pylintrc_travis htmlreport/*.py
pylint --rcfile=pylintrc_travis tools/*.py
-
name
:
check .json files
if
:
matrix.python-version == '3.9'
run
:
|
find . -name '*.json' | xargs -n 1 python -m json.tool > /dev/null
-
name
:
Validate
if
:
matrix.python-version == '3.9'
run
:
|
make -j$(nproc) validateCFG validatePlatforms validateRules
-
name
:
check python syntax
if
:
matrix.python-version != '2.7'
run
:
|
python -m py_compile addons/*.py
python -m py_compile htmlreport/cppcheck-htmlreport
python -m py_compile htmlreport/*.py
python -m py_compile tools/*.py
-
name
:
compile addons
run
:
|
python -m compileall ./addons
-
name
:
test matchcompiler
run
:
|
python tools/test_matchcompiler.py
-
name
:
build cppcheck
run
:
|
make -j$(nproc) -s
-
name
:
test addons
run
:
|
python -m pytest addons/test/test-*.py
env
:
PYTHONPATH
:
./addons
-
name
:
test htmlreport
run
:
|
htmlreport/test_htmlreport.py
cd htmlreport
./check.sh
-
name
:
dmake
if
:
matrix.python-version == '3.9'
run
:
|
make -j$(nproc) run-dmake
git diff --exit-code
Back
|
FazBrowse Home
|
New Git URL