From 2f264454b55413e767c7ced15fe82b463b7b8d57 Mon Sep 17 00:00:00 2001 From: Julien Foenet Date: Mon, 7 Oct 2024 13:03:20 +0000 Subject: [PATCH 1/2] finish behave file --- .github/workflows/ci.yml | 3 ++- tests/test_functional/features/training_workflow.feature | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3ab970..4c92f7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,5 +25,6 @@ jobs: run: vulture formation_indus_ds_avancee scripts --min-confidence 100 - name: Run tests run: python -m pytest tests/test_unit - # Add behave command + - name: Run Integration Tests + run: behave tests/test_functional/features diff --git a/tests/test_functional/features/training_workflow.feature b/tests/test_functional/features/training_workflow.feature index 57812cf..3814a7f 100644 --- a/tests/test_functional/features/training_workflow.feature +++ b/tests/test_functional/features/training_workflow.feature @@ -2,6 +2,6 @@ Feature: Model training I want to be able to train by model when a dataset containing the features and the target is available. # Add task names Scenario: train the model when training data is available - Given - When - Then + Given training data is available + When I launch the training + Then a model is added to the model registry From ffa358314e12d5e82e3d65112d616641b87257dd Mon Sep 17 00:00:00 2001 From: Julien Foenet Date: Mon, 7 Oct 2024 13:07:51 +0000 Subject: [PATCH 2/2] add quality step --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c92f7e..a154d2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,6 @@ jobs: run: python -m pytest tests/test_unit - name: Run Integration Tests run: behave tests/test_functional/features + - name: Quality + run: python -m pytest --cov=formation_indus_ds_avancee/ tests/test_unit/ -vv -p no:warnings