sh 'pytest ./tests --durations=0 -m "not (torch or paddle or paddledist or jittor or torchpaddle or torchjittor)"'
sh 'pytest ./tests --durations=0 --html=other.html --self-contained-html -m "not (torch or paddle or paddledist or jittor or torchpaddle or torchjittor)"'
}
}
stage('Test Torch-1.11') {
@@ -26,7 +26,7 @@ pipeline {
}
}
steps {
sh 'pytest ./tests --durations=0 -m torch'
sh 'pytest ./tests --durations=0 --html=torch-1.11.html --self-contained-html -m torch'
}
}
stage('Test Torch-1.6') {
@@ -37,7 +37,7 @@ pipeline {
}
}
steps {
sh 'pytest ./tests/ --durations=0 -m torch'
sh 'pytest ./tests/ --durations=0 --html=torch-1.6.html --self-contained-html -m torch'
}
}
stage('Test Paddle') {
@@ -48,11 +48,11 @@ pipeline {
}
}
steps {
sh 'pytest ./tests --durations=0 -m paddle --co'
sh 'FASTNLP_BACKEND=paddle pytest ./tests --durations=0 -m paddle --co'
sh 'FASTNLP_BACKEND=paddle pytest ./tests/core/drivers/paddle_driver/test_dist_utils.py --durations=0 --co'
sh 'FASTNLP_BACKEND=paddle pytest ./tests/core/drivers/paddle_driver/test_fleet.py --durations=0 --co'
sh 'FASTNLP_BACKEND=paddle pytest ./tests/core/controllers/test_trainer_paddle.py --durations=0 --co'
sh 'pytest ./tests --durations=0 --html=paddle.html --self-contained-html -m paddle --co'
sh 'FASTNLP_BACKEND=paddle pytest ./tests --durations=0 --html=paddle_with_backend.html --self-contained-html -m paddle --co'
sh 'FASTNLP_BACKEND=paddle pytest ./tests/core/drivers/paddle_driver/test_dist_utils.py --durations=0 --html=paddle_dist_utils.html --self-contained-html --co'
sh 'FASTNLP_BACKEND=paddle pytest ./tests/core/drivers/paddle_driver/test_fleet.py --durations=0 --html=paddle_fleet.html --self-contained-html --co'
sh 'FASTNLP_BACKEND=paddle pytest ./tests/core/controllers/test_trainer_paddle.py --durations=0 --html=paddle_trainer.html --self-contained-html --co'
}
}
// stage('Test Jittor') {
@@ -65,11 +65,17 @@ pipeline {
// steps {
// // sh 'pip install fitlog'
// // sh 'pytest ./tests --html=test_results.html --self-contained-html'
// sh 'pytest ./tests --durations=0 -m jittor --co'
// sh 'pytest ./tests --durations=0 --html=jittor.html --self-contained-html -m jittor --co'