Skip to content
Snippets Groups Projects
Commit f77e616c authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

point to our template in check error

parent 0a17a56d
No related branches found
No related tags found
No related merge requests found
Pipeline #54747 failed
......@@ -1026,11 +1026,13 @@ def check():
if os.path.isfile(path):
with open(path) as f:
content = f.read()
if '- "{{ PYTHON }} -m pip install . -vv"' not in content:
if (
'- "{{ PYTHON }} -m pip install . -vv"' not in content
or " - pip {{ pip }}" not in content
):
raise RuntimeError(
f"""Could not find the pip install line inside the {path} file.
Please apply similar changes to the {path} file:
https://gitlab.idiap.ch/bob/bob.extension/-/merge_requests/133/diffs"""
Please see bob/devtools/templates/conda/meta.yaml for a template."""
)
# if there is a pre-commit configuration file, run the tests
......
......@@ -48,7 +48,6 @@ test:
imports:
- {{ name }}
commands:
- pip check
# runs tests for package only, report only what is in the package
# creates html and xml reports and place them in specific directories
- pytest --verbose --cov {{ name }} --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }}/coverage.xml --pyargs {{ name }}
......@@ -57,7 +56,6 @@ test:
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
requires:
- pip {{ pip }}
- pytest {{ pytest }}
- pytest-cov {{ pytest_cov }}
- coverage {{ coverage }}
......
......@@ -56,14 +56,12 @@ requirements:
test:
requires:
- pip
- sphinx_rtd_theme
- pytest
- pytest-cov
- sphinx_rtd_theme {{ sphinx_rtd_theme }}
- pytest {{ pytest }}
- pytest-cov {{ pytest_cov }}
imports:
- {{ name }}
commands:
- pip check
- bdt -h
- bdt -?
- bdt --help
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment