@@ -3,10 +3,10 @@ name: Code Checks
3
3
on :
4
4
push :
5
5
paths-ignore :
6
- - ' gdal/ doc/**'
6
+ - ' doc/**'
7
7
pull_request :
8
8
paths-ignore :
9
- - ' gdal/ doc/**'
9
+ - ' doc/**'
10
10
11
11
jobs :
12
12
@@ -23,10 +23,10 @@ jobs:
23
23
sudo apt install -y cppcheck libsqlite3-dev ccache sqlite3 libproj-dev
24
24
25
25
- name : Run configure
26
- run : (cd gdal && ./autogen.sh && ./configure)
26
+ run : (./autogen.sh && ./configure)
27
27
28
28
- name : Run cppcheck test
29
- run : ./gdal/ scripts/cppcheck.sh
29
+ run : ./scripts/cppcheck.sh
30
30
31
31
code_quality_checks :
32
32
runs-on : ubuntu-latest
@@ -35,19 +35,19 @@ jobs:
35
35
uses : actions/checkout@v2
36
36
37
37
- name : Detect tabulations
38
- run : ./gdal/ scripts/detect_tabulations.sh
38
+ run : ./scripts/detect_tabulations.sh
39
39
40
40
- name : Detect printf
41
- run : ./gdal/ scripts/detect_printf.sh
41
+ run : ./scripts/detect_printf.sh
42
42
43
43
- name : Detect self assignments
44
- run : ./gdal/ scripts/detect_self_assignment.sh
44
+ run : ./scripts/detect_self_assignment.sh
45
45
46
46
- name : Detect suspicious char digit zero
47
- run : ./gdal/ scripts/detect_suspicious_char_digit_zero.sh
47
+ run : ./scripts/detect_suspicious_char_digit_zero.sh
48
48
49
49
- name : Shellcheck
50
- run : shellcheck -e SC2086,SC2046,SC2164,SC2054 $(find gdal -name '*.sh' -a -not -name ltmain.sh)
50
+ run : shellcheck -e SC2086,SC2046,SC2164,SC2054 $(find . -name '*.sh' -a -not -name ltmain.sh -a -not -wholename "./autotest/*" -a -not -wholename "./.github/*" )
51
51
52
52
flake8 :
53
53
runs-on : ubuntu-latest
64
64
run : |
65
65
export FLAKE8="flake8 --config autotest/setup.cfg"
66
66
$FLAKE8 autotest
67
- $FLAKE8 gdal/ swig/python/gdal-utils/
67
+ $FLAKE8 swig/python/gdal-utils/
68
68
69
69
doxygen :
70
70
runs-on : ubuntu-18.04
79
79
80
80
- name : Run doxygen
81
81
run : |
82
- cd gdal/ doc
82
+ cd doc
83
83
make .doxygen_up_to_date >log.txt 2>&1
84
84
if grep -i warning log.txt | grep -v -e russian -e brazilian; then echo "Doxygen warnings found" && cat log.txt && /bin/false; else echo "No Doxygen warnings found"; fi
0 commit comments