Skip to content

Commit e1aed37

Browse files
committed
fix: adjust cicd workflow tests to properly parse for relevant portions
1 parent b84051d commit e1aed37

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed
Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from functools import partial
21
from typing import Any
32

43
import pytest
@@ -12,18 +11,33 @@
1211
indirect=True,
1312
ids=["no-setup"]
1413
)
15-
@pytest.mark.parametrize(
16-
argnames="robust_demo__add_rust_extension",
17-
argvalues=[False, True],
18-
indirect=True,
19-
ids=["base", "maturin"]
20-
)
21-
@pytest.mark.parametrize(
22-
argnames="robust_file__path__relative",
23-
argvalues=templates_matching(".github/workflows/*.yml"),
24-
indirect=True,
25-
ids=lambda path: path.stem
26-
)
2714
class TestWorkflow:
28-
def test_workflow_basic_loading(self, robust_yaml: dict[str, Any]) -> None:
15+
@pytest.mark.parametrize(
16+
argnames="robust_demo__add_rust_extension",
17+
argvalues=[False],
18+
indirect=True,
19+
ids=["base"]
20+
)
21+
@pytest.mark.parametrize(
22+
argnames="robust_file__path__relative",
23+
argvalues=templates_matching(".github/workflows/*[!rust].yml"),
24+
indirect=True,
25+
ids=lambda path: path.stem
26+
)
27+
def test_workflow_basic_loading_with_python(self, robust_yaml: dict[str, Any]) -> None:
28+
assert robust_yaml
29+
30+
@pytest.mark.parametrize(
31+
argnames="robust_demo__add_rust_extension",
32+
argvalues=[True],
33+
indirect=True,
34+
ids=["maturin"]
35+
)
36+
@pytest.mark.parametrize(
37+
argnames="robust_file__path__relative",
38+
argvalues=templates_matching(".github/workflows/*.yml"),
39+
indirect=True,
40+
ids=lambda path: path.stem
41+
)
42+
def test_workflow_basic_loading_with_maturin(self, robust_yaml: dict[str, Any]) -> None:
2943
assert robust_yaml

0 commit comments

Comments
 (0)