Skip to content

Commit

Permalink
test(generate_classes): skip on master and release branches (#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Sep 30, 2023
1 parent 015d639 commit 41e668e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion autotest/test_generate_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,29 @@
from pprint import pprint

import pytest
from modflow_devtools.misc import get_current_branch

branch = get_current_branch()


@pytest.mark.mf6
def test_generate_classes_from_dfn(virtualenv, project_root_path):
@pytest.mark.slow
@pytest.mark.regression
@pytest.mark.skipif(
branch == "master" or branch.startswith("v"),
reason="skip on master and release branches",
)
def test_generate_classes_from_github_refs(
request, virtualenv, project_root_path, ref, worker_id
):
argv = (
request.config.workerinput["mainargv"]
if hasattr(request.config, "workerinput")
else []
)
if worker_id != "master" and "loadfile" not in argv:
pytest.skip("can't run in parallel")

python = virtualenv.python
venv = Path(python).parent
print(f"Using temp venv at {venv} with python {python}")
Expand Down

0 comments on commit 41e668e

Please sign in to comment.