File tree Expand file tree Collapse file tree 6 files changed +74
-7
lines changed Expand file tree Collapse file tree 6 files changed +74
-7
lines changed Original file line number Diff line number Diff line change @@ -97,15 +97,24 @@ jobs:
97
97
export LD_LIBRARY_PATH=$(grass --config path)/lib:$LD_LIBRARY_PATH
98
98
pytest \
99
99
@.github/workflows/pytest_args_ci.txt \
100
- @.github/workflows/pytest_args_parallel.txt
100
+ @.github/workflows/pytest_args_parallel.txt \
101
+ -k 'not testsuite'
101
102
- name : Run pytest with a single worker (for tests marked with needs_solo_run)
102
103
shell : micromamba-shell {0}
103
104
run : |
104
105
export PYTHONPATH=$(grass --config python_path):$PYTHONPATH
105
106
export LD_LIBRARY_PATH=$(grass --config path)/lib:$LD_LIBRARY_PATH
106
107
pytest \
107
108
@.github/workflows/pytest_args_ci.txt \
108
- @.github/workflows/pytest_args_not_parallel.txt
109
+ @.github/workflows/pytest_args_not_parallel.txt \
110
+ -k 'not testsuite'
111
+ - name : Run pytest with a single worker (for gunittest-based tests)
112
+ shell : micromamba-shell {0}
113
+ run : |
114
+ export PYTHONPATH=$(grass --config python_path):$PYTHONPATH
115
+ export LD_LIBRARY_PATH=$(grass --config path)/lib:$LD_LIBRARY_PATH
116
+ pytest \
117
+ @.github/workflows/pytest_args_gunittest.txt
109
118
110
119
- name : Cache GRASS Sample Dataset
111
120
id : cached-data
Original file line number Diff line number Diff line change @@ -131,7 +131,20 @@ jobs:
131
131
call %OSGEO4W_ROOT%\opt\grass\etc\env.bat
132
132
set PYTHONPATH=%GISBASE%\etc\python;%PYTHONPATH%
133
133
path %GISBASE%\lib;%GISBASE%\bin;%PATH%
134
- pytest @.github/workflows/pytest_args_ci.txt
134
+ pytest ^
135
+ @.github/workflows/pytest_args_ci.txt ^
136
+ -k "not testsuite"
137
+ shell : cmd /D /E:ON /V:OFF /S /C "CALL C:/OSGeo4W/OSGeo4W.bat "{0}""
138
+ - name : Run pytest with a single worker (for gunittest-based tests)
139
+ run : |
140
+ call %OSGEO4W_ROOT%\opt\grass\etc\env.bat
141
+ set PYTHONPATH=%GISBASE%\etc\python;%PYTHONPATH%
142
+ path %GISBASE%\lib;%GISBASE%\bin;%PATH%;%OSGEO4W_ROOT%\opt\grass
143
+ pytest ^
144
+ @.github/workflows/pytest_args_ci.txt ^
145
+ @.github/workflows/pytest_args_deselect.txt ^
146
+ @.github/workflows/pytest_args_gunittest.txt ^
147
+ --deselect=lib/init/testsuite/test_grass_tmp_mapset.py
135
148
shell : cmd /D /E:ON /V:OFF /S /C "CALL C:/OSGeo4W/OSGeo4W.bat "{0}""
136
149
137
150
- name : Run tests
Original file line number Diff line number Diff line change 91
91
pytest \
92
92
@.github/workflows/pytest_args_ci.txt \
93
93
@.github/workflows/pytest_args_cov.txt \
94
- @.github/workflows/pytest_args_parallel.txt
94
+ @.github/workflows/pytest_args_parallel.txt \
95
+ -k 'not testsuite'
95
96
96
97
- name : Run pytest with a single worker (for tests marked with needs_solo_run)
97
98
run : |
@@ -102,7 +103,17 @@ jobs:
102
103
pytest \
103
104
@.github/workflows/pytest_args_ci.txt \
104
105
@.github/workflows/pytest_args_cov.txt \
105
- @.github/workflows/pytest_args_not_parallel.txt
106
+ @.github/workflows/pytest_args_not_parallel.txt \
107
+ -k 'not testsuite'
108
+ - name : Run pytest with a single worker (for gunittest-based tests)
109
+ run : |
110
+ export PYTHONPATH=`grass --config python_path`:$PYTHONPATH
111
+ export LD_LIBRARY_PATH=$(grass --config path)/lib:$LD_LIBRARY_PATH
112
+ export INITIAL_GISBASE="$(grass --config path)"
113
+ export INITIAL_PWD="${PWD}"
114
+ pytest \
115
+ @.github/workflows/pytest_args_cov.txt \
116
+ @.github/workflows/pytest_args_gunittest.txt
106
117
- name : Fix non-standard installed script paths in coverage data
107
118
run : |
108
119
export PYTHONPATH=`grass --config python_path`:$PYTHONPATH
Original file line number Diff line number Diff line change
1
+ --deselect=imagery/i.signatures/testsuite/test_i_signatures.py
2
+ --deselect=lib/gis/testsuite/gis_lib_env_test.py
3
+ --deselect=lib/imagery/testsuite/test_imagery_find.py
4
+ --deselect=lib/imagery/testsuite/test_imagery_sigfile.py
5
+ --deselect=lib/imagery/testsuite/test_imagery_signature_management.py
6
+ --deselect=lib/imagery/testsuite/test_imagery_sigsetfile.py
7
+ --deselect=lib/raster/testsuite/test_raster_metadata.py
8
+ --deselect=lib/vector/Vlib/testsuite/test_vlib_intersect.py
9
+ --deselect=python/grass/pygrass/gis/testsuite/test_gis.py
10
+ --deselect=python/grass/pygrass/modules/interface/testsuite/test_modules.py::TestModules
11
+ --deselect=python/grass/pygrass/vector/testsuite/test_geometry.py
12
+ --deselect=python/grass/pygrass/vector/testsuite/test_geometry_attrs.py
13
+ --deselect=python/grass/pygrass/vector/testsuite/test_vector.py
14
+ --deselect=python/grass/pygrass/vector/testsuite/test_vector3d.py
15
+ --deselect=raster/r.support/testsuite/test_r_support.py
16
+ --deselect=scripts/r.semantic.label/testsuite/test_r_semantic_label.py
Original file line number Diff line number Diff line change
1
+ --ignore-glob=**/tests/**
2
+ --ignore=gui/
3
+ --ignore=python/grass/temporal/unit_tests.py
4
+ lib/gis/testsuite/test_gis_lib_getl.py
5
+ lib/init/testsuite/test_grass_tmp_mapset.py
6
+ lib/vector/Vlib/testsuite/test_vlib_box.py
7
+ python/grass/exceptions/testsuite/test_ScriptError.py
8
+ python/grass/gunittest/testsuite/test_checkers.py
9
+ python/grass/pygrass/modules/interface/testsuite/test_flag.py
10
+ python/grass/pygrass/modules/interface/testsuite/test_parameter.py
11
+ python/grass/pygrass/vector/testsuite/test_filters.py
12
+ python/grass/script/testsuite/test_core_make_val.py
13
+ python/grass/script/testsuite/test_utils.py
Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ addopts = """
353
353
--ignore-glob='dist.*'
354
354
--ignore-glob='bin.*'
355
355
--ignore-glob='*/tests/data/*'
356
+ --ignore-glob='*/testsuite/data/**'
356
357
--ignore-glob='*/grass/pygrass/tests/*'
357
358
--doctest-glob='*doctest*.txt'
358
359
--ignore='raster/r.category/test_rcategory_doctest.txt'
@@ -361,8 +362,12 @@ markers = [
361
362
" slow: marks tests as slow (deselect with '-m \" not slow\" ')" ,
362
363
" needs_solo_run: marks tests that must be run without any other tests running in parallel" ,
363
364
]
364
- minversion = " 6.0"
365
- python_files = " */tests/*_test.py */tests/test_*.py"
365
+ minversion = " 8.2"
366
+ python_files = """
367
+ */tests/*_test.py
368
+ */tests/test_*.py
369
+ **/testsuite/*test*.py
370
+ """
366
371
timeout = 300
367
372
368
373
You can’t perform that action at this time.
0 commit comments