Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Test conda canary (24.9) #398

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions tests/test_boa_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@
tests_dir = pathlib.Path(__file__).parent / "tests-v2"


def test_build_recipes():
def test_build_recipes(tmp_path: Path):
recipes = [str(x) for x in recipes_dir.iterdir() if x.is_dir()]
cbc_yaml = tmp_path / "conda_build_config.yaml"
cbc_yaml.write_text("cxx_compiler: # [win]\n- vs2022 # [win]\n")
for recipe in recipes:
check_call(["boa", "build", recipe])
check_call(["boa", "build", "-m", str(cbc_yaml), recipe])


def test_build_notest():
def test_build_notest(tmp_path: Path):
recipes = [str(x) for x in recipes_dir.iterdir() if x.is_dir()]
recipe = recipes[0]
check_call(["boa", "build", recipe, "--no-test"])
cbc_yaml = tmp_path / "conda_build_config.yaml"
cbc_yaml.write_text("cxx_compiler: # [win]\n- vs2022 # [win]\n")
check_call(["boa", "build", "-m", str(cbc_yaml), recipe, "--no-test"])


def test_run_exports(tmp_path: Path):
Expand Down