Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test dependencies ignored when include_recipe is false #328

Open
moqmar opened this issue Feb 3, 2023 · 0 comments
Open

Test dependencies ignored when include_recipe is false #328

moqmar opened this issue Feb 3, 2023 · 0 comments

Comments

@moqmar
Copy link
Contributor

moqmar commented Feb 3, 2023

When setting include_recipe: false, boa won't install the test dependencies before running the test scripts.

I have crafted the following minimal recipe to reproduce the bug:

package:
  name: test
  version: 1.0.0

build:
  include_recipe: false
  script: []

test:
  requires:
    - pyserial
  commands:
    - python -c "import pyserial"

As a workaround, I modified run_build.py from line 395 like this, but I am not sure if that has other implications e.g. with multi-output packages:

                    if not notest:
                        o.config.need_cleanup = False
                        run_test(
                            MetaData(final_out, o),
                            o.config,
moqmar added a commit to ZEISS/boa that referenced this issue Mar 20, 2023
moqmar added a commit to ZEISS/boa that referenced this issue Mar 20, 2023
moqmar added a commit to ZEISS/boa that referenced this issue May 5, 2023
moqmar added a commit to ZEISS/boa that referenced this issue May 5, 2023
moqmar added a commit to ZEISS/boa that referenced this issue Sep 22, 2023
moqmar added a commit to ZEISS/boa that referenced this issue Sep 22, 2023
moqmar added a commit to ZEISS/boa that referenced this issue Jan 30, 2024
moqmar added a commit to ZEISS/boa that referenced this issue Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant