-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adding skills. See #23 #28
Conversation
@pytest.mark.parametrize( | ||
"products,expected_results", | ||
[({"ansible", "JBoss", "Bash"}, 3), ({"agile", "scrum", "kanban"}, 1)], | ||
) | ||
def test_search_skill_label(db, products, expected_results): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify that both old and new skills are accessible, using a parametric test.
@@ -42,12 +47,16 @@ allowlist_externals = | |||
sitepackages = True | |||
|
|||
commands_pre = | |||
python -m spacy download en_core_web_trf | |||
# Eventually download en_core_web_trf. | |||
python -c "import spacy; m='en_core_web_trf'; spacy.util.is_package(m) or spacy.cli.download(m)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We download the model only if it's not already there. This saves a lot of time (and CO2)
# Eventually download en_core_web_trf. | ||
python -c "import spacy; m='en_core_web_trf'; spacy.util.is_package(m) or spacy.cli.download(m)" | ||
# Ensure sparql is populated. | ||
pytest tests/test_sparql.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test if sparql is ok before rebuilding the model. If this fails, then the sparql server is not up and running.
|
||
commands = | ||
python model/model.py | ||
rm generated/output -fr | ||
mkdir -p generated/output | ||
pytest tests/test_localdb_base.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after the build, we test that new skills are there.
This PR
Fix: #23 based on #27