run_local_ci_test.sh 710 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# Set ROOT_DIR to the project root (two levels up from this script's directory)
ROOT_DIR=$(cd "$(dirname "$0")/../.." && pwd)

# Change to the project root directory for local testing of changes
cd $ROOT_DIR

# Add the project root to PYTHONPATH so Python can find local modules
export PYTHONPATH=$ROOT_DIR:$PYTHONPATH

# Run pytest in parallel (4 workers) for all tests in the examples directory
cd examples
14
python -m pytest -n 4 . --verbose --color=yes --durations=0 --showlocals --cache-clear
15
16
17
18
cd ..

# Run pytest in parallel (4 workers) for all tests in the testing/python directory
cd testing/python
19
python -m pytest -n 4 . --verbose --color=yes --durations=0 --showlocals --cache-clear
20
cd ..