test_metric 添加torch标签

This commit is contained in:
x54-729 2022-09-27 15:13:27 +08:00
parent 9f60246749
commit 6a99e2fa8c
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ pipeline {
} }
} }
steps { steps {
sh 'pytest ./tests --durations=0 --html=other.html --self-contained-html -m "not (torch or paddle or paddledist or jittor or oneflow or oneflowdist or torchpaddle or torchjittor or torchoneflow)"' sh 'pytest ./tests --durations=0 --html=other.html --self-contained-html -m "not (torch or paddle or paddledist or jittor or oneflow or oneflowdist or deepepeed or torchpaddle or torchjittor or torchoneflow)"'
} }
post { post {
always { always {

View File

@ -26,6 +26,7 @@ class DemoMetric1(Metric):
return self.count return self.count
@pytest.mark.torch
class TestMetric: class TestMetric:
def test_v1(self): def test_v1(self):