Skip to content

Commit 4bae6d1

Browse files
committed
Mark 1 test as failing on GitHub Actions
1 parent 46502cc commit 4bae6d1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

message_ix_models/model/transport/testing.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,18 @@
5151
testing.MARK,
5252
)
5353

54-
make_mark: dict[int, Callable[..., pytest.MarkDecorator]] = {
54+
make_mark: dict[Hashable, Callable[..., pytest.MarkDecorator]] = {
5555
2: lambda t: pytest.mark.xfail(
5656
reason="Missing input data/assumptions for this node codelist", raises=t
5757
),
5858
5: lambda f: pytest.mark.xfail(
5959
raises=FileNotFoundError, reason=f"Requires non-public data ({f})"
6060
),
61+
"gh": lambda f: pytest.mark.xfail(
62+
condition=GHA,
63+
reason=f"Temporary, for https://github.com/iiasa/message-ix-models/pull/{f}:"
64+
" fails on GHA, but not locally",
65+
),
6166
}
6267

6368

message_ix_models/tests/model/transport/test_report.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def test_simulated(request, test_context, build, regions="R12", years="B"):
202202

203203
@sim.to_simulate.minimum_version
204204
@MARK[10]
205+
@make_mark["gh"](328)
205206
def test_simulated_iamc(
206207
request, tmp_path_factory, test_context, regions="R12", years="B"
207208
) -> None:

0 commit comments

Comments
 (0)