diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 87586ccc6eadcd4bbfcdc8a7db11b493526e52c8..600420ef5158b696a296c1e80cb1b3242977e173 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,22 +20,6 @@ train: paths: - $MODEL_PATH # Save the trained model as an artifact -test: - stage: test - script: - - echo "Testing the model..." - # Ensure Flask is installed - - pip3 install flask - # Run the Flask app in the background - - nohup python3 app.py & - - sleep 10 # Wait for the server to start - # Run the tests - - curl -X POST http://localhost:5003/predict -H "Content-Type: application/json" -d '{"tokens": ["For", "this", "purpose", "the", "Gothenburg", "Young", "Persons", "Empowerment", "Scale", "(", "GYPES", ")", "was", "developed", "."]}' - - curl -X POST http://localhost:5003/stress_test -H "Content-Type: application/json" -d '{"tokens": ["For", "this", "purpose", "the", "Gothenburg", "Young", "Persons", "Empowerment", "Scale", "(", "GYPES", ")", "was", "developed", "."]}' - - curl -X POST http://localhost:5003/run_stress_test -H "Content-Type: application/json" -d '{"num_requests": 50}' - - curl -X GET http://localhost:5003/get_latest_results - dependencies: - - train deploy: stage: deploy