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

Adding skills. See #23 #28

Merged
merged 3 commits into from
May 7, 2024
Merged

Adding skills. See #23 #28

merged 3 commits into from
May 7, 2024

Conversation

Edocampa
Copy link
Collaborator

@Edocampa Edocampa commented May 3, 2024

This PR

  • Adds skills

Fix: #23 based on #27

Comment on lines +43 to +47
@pytest.mark.parametrize(
"products,expected_results",
[({"ansible", "JBoss", "Bash"}, 3), ({"agile", "scrum", "kanban"}, 1)],
)
def test_search_skill_label(db, products, expected_results):
Copy link
Contributor

@ioggstream ioggstream May 7, 2024

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)"
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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.

@ioggstream ioggstream merged commit 71fb0d1 into par-tec:main May 7, 2024
3 of 5 checks passed
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

Successfully merging this pull request may close these issues.

Add ICT project management skills
3 participants