Browse Source

remove cuda related test

pull/3/head
Gao Enhao 2 years ago
parent
commit
9db37decec
2 changed files with 1 additions and 5 deletions
  1. +0
    -4
      .github/workflows/build-and-test.yaml
  2. +1
    -1
      tests/test_models.py

+ 0
- 4
.github/workflows/build-and-test.yaml View File

@@ -25,10 +25,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r ./requirements.txt
- uses: Jimver/cuda-toolkit@v0.2.10
id: cuda-toolkit
with:
cuda: '12.1.0'
- name: Run tests
run: |
pytest --cov-config=.coveragerc --cov-report=xml --cov=abl ./tests


+ 1
- 1
tests/test_models.py View File

@@ -18,7 +18,7 @@ class TestBasicModel(object):
@pytest.mark.parametrize("cls", [LeNet5, SymbolNet])
@pytest.mark.parametrize("criterion", [nn.CrossEntropyLoss])
@pytest.mark.parametrize("optimizer", [torch.optim.RMSprop])
@pytest.mark.parametrize("device", [torch.device("cpu"), torch.device("cuda:0")])
@pytest.mark.parametrize("device", [torch.device("cpu")])
def test_models(self, num_classes, image_size, cls, criterion, optimizer, device):
cls = cls(num_classes=num_classes, image_size=image_size)
criterion = criterion()


Loading…
Cancel
Save