-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This is work in progress | ||
# Testing workflow in CI is gradually being transferred to tox | ||
|
||
[tox] | ||
description = Default tox enviroment list and core configurations | ||
|
||
envlist = | ||
|
||
isolated_build_env = build | ||
|
||
[testenv] | ||
description = default configuration for test environments, unless overriden | ||
|
||
pass_env = | ||
PACKAGE_NAME | ||
MODULE | ||
ANSYS_DPF_ACCEPT_LA | ||
ANSYSLMD_LICENSE_FILE | ||
|
||
package = external # To allow custom wheel builds | ||
|
||
[testenv:build_external] | ||
description = Environment for custom build of package wheels, solves PyDPF custom wheel building requirement | ||
|
||
allowlist_externals = | ||
bash | ||
|
||
package_glob = {toxinidir}{/}dist{/}ansys_dpf_core* | ||
|
||
commands = | ||
# Build the wheel | ||
bash -c '\ | ||
if [ {on_platform} == "linux" ]; then \ | ||
export platform="manylinux_2_17"; \ | ||
elif [ {on_platform} == "win32" ]; then \ | ||
export platform="win"; \ | ||
else \ | ||
echo "Unknown OS"; \ | ||
fi; \ | ||
echo $platform; \ | ||
python .ci/build_wheel.py -p $platform -w' | ||
|
||
[testenv:test-{launcher,server,server,multi_server,remote_workflow,remote_operator,workflow,service,operators}] |