From aae8ca3e03709ba5ee1b988be111b67f7929a740 Mon Sep 17 00:00:00 2001 From: "Hafiz, Aqib (PG/T - Comp Sci & Elec Eng)" <ah02821@surrey.ac.uk> Date: Thu, 23 May 2024 16:18:29 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 87586cc..600420e 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 -- GitLab