Skip to content

Commit

Permalink
CI: Have Ubuntu 20.04 config run Python tests in random order, parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Nov 16, 2023
1 parent 61b83a3 commit 578ba4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ubuntu_20.04/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ set -eu

export OGR_HANA_CONNECTION_STRING='DRIVER=/usr/sap/hdbclient/libodbcHDB.so;HOST=917df316-4e01-4a10-be54-eac1b6ab15fb.hana.prod-us10.hanacloud.ondemand.com;PORT=443;USER=GDALCI;PASSWORD=u7t!Ukeugzq7'

ctest -V -j $(nproc)
# run all tests except python tests (prefixed with "autotest")
ctest -V -j $(nproc) -E autotest

# run python tests in random order / parallel where possible
. ../scripts/setdevenv.sh
cd autotest
pytest --timeout 120 gnm pyscripts/gdal2tiles
pytest --timeout 120 --random-order alg gcore gdrivers ogr
pytest --timeout 120 --random-order -n $(nproc) pyscripts utilities
3 changes: 3 additions & 0 deletions autotest/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ pytest-sugar<=0.9.6; python_version < '3.7'
pytest-sugar; python_version >= '3.7'
pytest-env
pytest-benchmark
pytest-random-order
pytest-timeout
pytest-xdist
lxml
jsonschema
filelock

0 comments on commit 578ba4a

Please sign in to comment.