Skip to content

Commit

Permalink
disable slow test in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
quintenroets committed Apr 9, 2024
1 parent 548cc16 commit 0dbfa8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import pytest
import torch
from revnets.main.main import main

gpu_available = torch.cuda.is_available()


@pytest.mark.skipif(
not gpu_available, reason="Only test model training if GPU is available"
)
def test_main() -> None:
main()

0 comments on commit 0dbfa8e

Please sign in to comment.