Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/test-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
TESTING_MINIMAL: ${{ inputs.testing-minimal }}
P_SCHEMA: "/ansys_inc/v241/ansys/ac4/schema"
PYTEST_TIMEOUT: 120 # seconds. Limit the duration for each unit test
PYTEST_ARGUMENTS: '-vvv -ra --color=yes --durations=30 --random-order --random-order-bucket=class --maxfail=10 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html --timeout=180 --profile-svg --profile --report-log-exclude-logs-on-passed-tests --strict-markers'
PYTEST_ARGUMENTS: ''
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
DATAPROCESSING_DEBUG: /home/mapdl/dpf_logs
Expand Down Expand Up @@ -276,9 +276,7 @@ jobs:
$cmd ${PYTEST_INPUT_ARGUMENTS} \
${PYTEST_ARGUMENTS} \
--report-log=$file_name.jsonl \
--cov-report=xml:$file_name.xml \
--log-file=pytest.log \
--log-file-level="DEBUG"
--cov-report=xml:$file_name.xml

- name: "Upload pytest reports to GitHub"
if: always()
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/test-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
DPF_START_SERVER: False
HAS_DPF: True
TEST_DPF_BACKEND: false
PYTEST_ARGUMENTS: '-vvv -ra --color=yes --durations=30 --random-order --random-order-bucket=class --maxfail=10 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html --timeout=180 --profile-svg --profile --report-log-exclude-logs-on-passed-tests --strict-markers'
PYTEST_ARGUMENTS: '--ignore_image_cache'
MAPDL_PACKAGE: ghcr.io/ansys/mapdl

steps:
Expand Down Expand Up @@ -264,11 +264,8 @@ jobs:
echo "ON_STUDENT: $ON_STUDENT"
xvfb-run pytest \
${PYTEST_ARGUMENTS} \
--ignore_image_cache \
--report-log=$file_name.jsonl \
--cov-report=xml:$file_name.xml \
--log-file=pytest.log \
--log-file-level="DEBUG"
--cov-report=xml:$file_name.xml

- name: "Print amount of restarts"
if: always()
Expand Down
22 changes: 21 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,27 @@ pymapdl = "ansys.mapdl.core.cli:main"
pymapdl_convert_script = "ansys.mapdl.core.cli:old_pymapdl_convert_script_entry_point"

[tool.pytest.ini_options]
addopts = "-ra -vvv --maxfail=10 --strict-markers --random-order-bucket=class --random-order --durations=10 --timeout=180"
addopts = [
"-ra",
"-vvv",
"--durations=30",
"--timeout=180",
"--reruns=3",
"--reruns-delay=4",
"--maxfail=10",
"--strict-markers",
"--random-order",
"--random-order-bucket=class",
"--cov=ansys.mapdl.core",
"--cov-report=html",
"--profile-svg",
"--profile",
"--report-log-exclude-logs-on-passed-tests",
"--strict-markers",
"--log-file=pytest.log",
"--log-file-level=DEBUG"
]

filterwarnings = [
"ignore::DeprecationWarning",
"ignore::FutureWarning",
Expand Down
Loading