Browse Source

test_metric 添加torch标签

dev0.8.0
x54-729 2 years ago
parent
commit
6a99e2fa8c
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      .Jenkinsfile
  2. +1
    -0
      tests/core/metrics/test_metric.py

+ 1
- 1
.Jenkinsfile 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 {


+ 1
- 0
tests/core/metrics/test_metric.py 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):


Loading…
Cancel
Save