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

CI: Test with current conda-canary (2024-05) #397

Open
wants to merge 2 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")
Comment on lines +19 to +20
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea where boa looks for conda_build_config.yaml files by default.
Running the tests locally with conda_build_config.yaml in the recipe's directory or base environment's root dir didn't seem to be picked up -- hence putting this explicitly in here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reason for the change: conda-forge/vc-feedstock#78

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
Loading