Browse Source

paddle jittor的测试添加--co,仅测试能否import成功

tags/v1.0.0alpha
x54-729 2 years ago
parent
commit
753709906c
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      Jenkinsfile

+ 6
- 6
Jenkinsfile View File

@@ -48,11 +48,11 @@ pipeline {
} }
} }
steps { steps {
sh 'pytest ./tests --durations=0 -m paddle'
sh 'FASTNLP_BACKEND=paddle pytest ./tests --durations=0 -m paddle'
sh 'FASTNLP_BACKEND=paddle pytest ./tests/core/drivers/paddle_driver/test_dist_utils.py --durations=0'
sh 'FASTNLP_BACKEND=paddle pytest ./tests/core/drivers/paddle_driver/test_fleet.py" --durations=0'
sh 'FASTNLP_BACKEND=paddle pytest ./tests/core/core/controllers/test_trainer_paddle.py --durations=0'
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'
} }
} }
stage('Test Jittor') { stage('Test Jittor') {
@@ -65,7 +65,7 @@ pipeline {
steps { steps {
// sh 'pip install fitlog' // sh 'pip install fitlog'
// sh 'pytest ./tests --html=test_results.html --self-contained-html' // sh 'pytest ./tests --html=test_results.html --self-contained-html'
sh 'pytest ./tests --durations=0 -m jittor'
sh 'pytest ./tests --durations=0 -m jittor --co'
} }
} }
} }


Loading…
Cancel
Save