Skip to content

Commit 05c02f3

Browse files
committed
skip sim tests
1 parent e3d7fb3 commit 05c02f3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/test_sim.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
import os
2+
3+
import pytest
4+
15
from robot_nav.sim import SIM_ENV
26
import numpy as np
37

8+
skip_on_ci = pytest.mark.skipif(
9+
os.getenv("CI") == "true",
10+
reason="Skipped on CI (GitHub Actions)"
11+
)
412

13+
@skip_on_ci
514
def test_sim():
615
sim = SIM_ENV("/tests/test_world.yaml")
716
robot_state = sim.env.get_robot_state()
@@ -18,7 +27,7 @@ def test_sim():
1827
assert np.not_equal(robot_state[0], new_robot_state[0])
1928
assert np.not_equal(robot_state[1], new_robot_state[1])
2029

21-
30+
@skip_on_ci
2231
def test_sincos():
2332
sim = SIM_ENV("/tests/test_world.yaml")
2433
cos, sin = sim.cossin([1, 0], [0, 1])

0 commit comments

Comments
 (0)