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

Reduce Github actions load #937

Closed
wants to merge 1 commit into from

Update CI triggers

f69e82e
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

Reduce Github actions load #937

Update CI triggers
f69e82e
Select commit
Loading
Failed to load commit list.
GitHub Actions / Pytest Results succeeded Dec 11, 2023 in 1s

Pytest Results ✅

Tests passed successfully

✅ pytest_report.xml

195 tests were completed in 598s with 195 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 195✅ 598s

✅ pytest

src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisApi
  ✅ test_cleaned_name_is_empty___response_is_400
  ✅ test_cleaned_name_portfolio_and_model_are_present___object_is_created
  ✅ test_complex_model_file_present___object_is_created
  ✅ test_create_as_admin_low_priority___successfully
  ✅ test_create_as_no_admin_low_priority___rejected
  ✅ test_create_no_priority___successfully_set_default
  ✅ test_model_does_exist___response_is_200
  ✅ test_model_does_not_exist___response_is_400
  ✅ test_modify_analysis_without_group___successfully
  ✅ test_multiple_analyses_with_different_groups___user_should_not_see_each_others
  ✅ test_multiple_analyses_with_different_groups___user_without_group_should_not_see_them
  ✅ test_name_is_not_provided___response_is_400
  ✅ test_portfolio_group_inheritance___same_groups_as_portfolio
  ✅ test_user_is_authenticated_object_does_not_exist___response_is_404
  ✅ test_user_is_not_authenticated___response_is_forbidden
  ✅ test_user_with_and_without_group_can_access_portfolio_without_group
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisRun
  ✅ test_user_is_authenticated_object_does_not_exist___response_is_404
  ✅ test_user_is_authenticated_object_exists___run_is_called
  ✅ test_user_is_not_authenticated___response_is_forbidden
  ✅ test_user_is_not_in_same_model_group___run_is_denied
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisCancel
  ✅ test_user_is_authenticated_object_does_not_exist___response_is_404
  ✅ test_user_is_authenticated_object_exists___cancel_is_called
  ✅ test_user_is_not_authenticated___response_is_forbidden
  ✅ test_user_is_not_in_same_model_group___cancel_is_denied
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisGenerateInputs
  ✅ test_user_is_authenticated_object_does_not_exist___response_is_404
  ✅ test_user_is_authenticated_object_exists___generate_inputs_is_called
  ✅ test_user_is_not_authenticated___response_is_forbidden
  ✅ test_user_is_not_in_same_model_group___run_is_denied
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisCancelInputsGeneration
  ✅ test_user_is_authenticated_object_does_not_exist___response_is_404
  ✅ test_user_is_authenticated_object_exists___generate_inputs_generation_is_called
  ✅ test_user_is_not_authenticated___response_is_forbidden
  ✅ test_user_is_not_in_same_model_group___cancel_is_denied
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisCopy
  ✅ test_complex_model_file_is_not_supplied___model_is_copied
  ✅ test_complex_model_file_is_supplied___model_is_replaced
  ✅ test_creator_is_set_to_caller
  ✅ test_generate_inputs_task_id_is_reset
  ✅ test_input_file_is_not_supplied___input_file_is_not_copied
  ✅ test_lookup_errors_file_is_cleared
  ✅ test_lookup_success_file_is_cleared
  ✅ test_lookup_validation_file_is_cleared
  ✅ test_model_is_not_supplied___model_is_copied
  ✅ test_model_is_supplied___model_is_replaced
  ✅ test_new_name_is_provided___new_name_is_set_on_new_object
  ✅ test_new_object_is_created
  ✅ test_no_new_name_is_provided___copy_is_appended_to_name
  ✅ test_output_file_is_cleared
  ✅ test_portfolio_is_not_supplied___portfolio_is_copied
  ✅ test_portfolio_is_supplied___portfolio_is_replaced
  ✅ test_run_task_id_is_reset
  ✅ test_settings_file_is_not_supplied___settings_file_is_copied
  ✅ test_state_is_reset
  ✅ test_user_is_authenticated_object_does_not_exist___response_is_404
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisSettingsJson
  ✅ test_settings_json_is_not_present___delete_response_is_404
  ✅ test_settings_json_is_not_present___get_response_is_404
  ✅ test_settings_json_is_not_valid___response_is_400
  ✅ test_settings_json_is_uploaded___can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisSettingsFile
  ✅ test_settings_file_is_not_a_valid_format___response_is_400
  ✅ test_settings_file_is_not_present___delete_response_is_404
  ✅ test_settings_file_is_not_present___get_response_is_404
  ✅ test_settings_file_is_uploaded___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisInputFile
  ✅ test_input_file_is_not_present___get_response_is_404
  ✅ test_input_file_is_present___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisLookupErrorsFile
  ✅ test_lookup_errors_file_is_not_present___get_response_is_404
  ✅ test_lookup_errors_file_is_present___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisLookupSuccessFile
  ✅ test_lookup_success_file_is_not_present___get_response_is_404
  ✅ test_lookup_success_file_is_present___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisLookupValidationFile
  ✅ test_lookup_validation_file_is_not_present___get_response_is_404
  ✅ test_lookup_validation_file_is_present___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisInputGenerationTracebackFile
  ✅ test_input_generation_traceback_file_is_not_present___delete_response_is_404
  ✅ test_input_generation_traceback_file_is_not_present___get_response_is_404
  ✅ test_input_generation_traceback_file_is_present___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisOutputFile
  ✅ test_output_file_is_not_present___delete_response_is_404
  ✅ test_output_file_is_not_present___get_response_is_404
  ✅ test_output_file_is_not_valid_format___post_response_is_405
  ✅ test_output_file_is_present___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.analyses.tests.test_analysis_api.AnalysisRunTracebackFile
  ✅ test_run_traceback_file_is_not_present___delete_response_is_404
  ✅ test_run_traceback_file_is_not_present___get_response_is_404
  ✅ test_run_traceback_file_is_not_valid_format___post_response_is_405
  ✅ test_run_traceback_file_is_present___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.analyses.tests.test_analysis_model.AnalysisGenerateAndRun
  ✅ test_state_is_ready___run_is_started
  ✅ test_state_is_running_or_generating_inputs___validation_error_is_raised_revoke_is_not_called
src.server.oasisapi.analyses.tests.test_analysis_model.AnalysisRun
  ✅ test_run_analysis_signature_is_correct
  ✅ test_state_is_ready___run_is_started
  ✅ test_state_is_running_or_generating_inputs___validation_error_is_raised_revoke_is_not_called
src.server.oasisapi.analyses.tests.test_analysis_model.AnalysisGenerateInputs
  ✅ test_generate_input_signature_is_correct
  ✅ test_portfolio_has_no_location_file___validation_error_is_raised_revoke_is_not_called
  ✅ test_state_is_not_running___run_is_started
  ✅ test_state_is_running_or_generating_inputs___validation_error_is_raised_revoke_is_not_called
src.server.oasisapi.analysis_models.tests.test_analysis_model.AnalysisModelApi
  ✅ test_as_admin_create_with_non_existing_groups___successfully
  ✅ test_create_with_default_groups___response_is_201
  ✅ test_create_with_default_groups_and_get_with_other_groups___response_is_empty
  ✅ test_create_with_invalid_groups___response_is_403
  ✅ test_create_with_valid_groups___response_is_201
  ✅ test_data_is_valid___object_is_created
  ✅ test_supplier_id_is_missing___response_is_400
  ✅ test_version_id_is_missing___response_is_400
src.server.oasisapi.analysis_models.tests.test_analysis_model.ModelSettingsJson
  ✅ test_settings_json_is_not_present___delete_response_is_404
  ✅ test_settings_json_is_not_present___get_response_is_404
  ✅ test_settings_json_is_not_valid___response_is_400
  ✅ test_settings_json_is_uploaded___can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.auth.tests.test_jwt.AccessToken
  ✅ test_password_is_not_correct___response_is_401
  ✅ test_username_and_password_are_correct___returned_token_represents_the_user
  ✅ test_username_is_not_correct___response_is_401
src.server.oasisapi.auth.tests.test_jwt.RefreshToken
  ✅ test_username_and_password_are_correct___refresh_token_can_be_used_to_get_access_token
src.server.oasisapi.data_files.tests.test_data_files.ComplexModelFilesApi
  ✅ test_data_is_valid___object_is_created
src.server.oasisapi.data_files.tests.test_data_files.ComplexModelFileDataFile
  ✅ test_data_file_is_not_present___delete_response_is_404
  ✅ test_data_file_is_not_present___get_response_is_404
  ✅ test_data_file_is_unknown_format___response_is_200
  ✅ test_data_file_is_uploaded___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.healthcheck.tests.test_healthcheck.Healthcheck
  ✅ test_user_is_authenticated___response_is_ok
  ✅ test_user_is_not_authenticated___response_is_ok
src.server.oasisapi.info.tests.test_info.Perilcodes
  ✅ test_user_is_authenticated___response_is_ok
  ✅ test_user_is_not_authenticated___response_is_ok
src.server.oasisapi.info.tests.test_info.ServerInfo
  ✅ test_user_is_authenticated___response_is_ok
  ✅ test_user_is_not_authenticated___response_is_Forbidden
src.server.oasisapi.permissions.tests.test_group_auth.TestGroupAuth
  ✅ test_verify_and_get_groups
  ✅ test_verify_and_get_groups__invalid_groups
  ✅ test_verify_and_get_groups__no_or_empty
  ✅ test_verify_and_get_groups__valid_groups
src.server.oasisapi.portfolios.tests.test_portfolio.PortfolioApi
  ✅ test_cleaned_name_is_empty___response_is_400
  ✅ test_cleaned_name_is_present___object_is_created
  ✅ test_default_empty_groups___visible_for_users_without_groups_only
  ✅ test_name_is_not_provided___response_is_400
  ✅ test_user_is_authenticated_object_does_not_exist___response_is_404
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.portfolios.tests.test_portfolio.PortfolioApiCreateAnalysis
  ✅ test_cleaned_name_and_model_are_present___object_is_created_inputs_are_generated
  ✅ test_cleaned_name_is_empty___response_is_400
  ✅ test_model_does_not_exist___response_is_400
  ✅ test_model_is_not_provided___response_is_400
  ✅ test_name_is_not_provided___response_is_400
  ✅ test_portfolio_does_not_have_location_file_set___response_is_400
  ✅ test_user_is_authenticated_object_does_not_exist___response_is_404
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.portfolios.tests.test_portfolio.PortfolioAccountsFile
  ✅ test_accounts_file_invalid_uploaded___parquet_exception_raised
  ✅ test_accounts_file_is_not_a_valid_format___response_is_400
  ✅ test_accounts_file_is_not_present___delete_response_is_404
  ✅ test_accounts_file_is_not_present___get_response_is_404
  ✅ test_accounts_file_is_uploaded___file_can_be_retrieved
  ✅ test_accounts_file_is_uploaded_as_parquet___file_can_be_retrieved
  ✅ test_accounts_file_user_is_not_permitted___response_is_403
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.portfolios.tests.test_portfolio.PortfolioLocationFile
  ✅ test_location_file_invalid_uploaded___parquet_exception_raised
  ✅ test_location_file_is_not_a_valid_format___response_is_400
  ✅ test_location_file_is_not_present___delete_response_is_404
  ✅ test_location_file_is_not_present___get_response_is_404
  ✅ test_location_file_is_uploaded___file_can_be_retrieved
  ✅ test_location_file_is_uploaded_as_parquet___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.portfolios.tests.test_portfolio.PortfolioReinsuranceSourceFile
  ✅ test_reinsurance_scope_file_invalid_uploaded___parquet_exception_raised
  ✅ test_reinsurance_scope_file_is_not_a_valid_format___response_is_400
  ✅ test_reinsurance_scope_file_is_not_present___delete_response_is_404
  ✅ test_reinsurance_scope_file_is_not_present___get_response_is_404
  ✅ test_reinsurance_scope_file_is_uploaded___file_can_be_retrieved
  ✅ test_reinsurance_scope_file_is_uploaded_as_parquet___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.portfolios.tests.test_portfolio.PortfolioReinsuranceInfoFile
  ✅ test_reinsurance_info_file_invalid_uploaded___parquet_exception_raised
  ✅ test_reinsurance_info_file_is_not_a_valid_format___response_is_400
  ✅ test_reinsurance_info_file_is_not_present___delete_response_is_404
  ✅ test_reinsurance_info_file_is_not_present___get_response_is_404
  ✅ test_reinsurance_info_file_is_uploaded___file_can_be_retrieved
  ✅ test_reinsurance_info_file_is_uploaded_as_parquet___file_can_be_retrieved
  ✅ test_user_is_not_authenticated___response_is_forbidden
src.server.oasisapi.portfolios.tests.test_portfolio.PortfolioValidation
  ✅ test_account_file__is_invalid__response_is_400
  ✅ test_all_exposure__are_valid
  ✅ test_location_file__is_invalid__response_is_400
  ✅ test_location_file__is_valid
  ✅ test_reinsurance_info_file__is_invalid__response_is_400
  ✅ test_reinsurance_scope_file__is_invalid__response_is_400
src.server.oasisapi.queues.tests.test_build_task_status_message.BuildTaskStatusMessage
  ✅ test_current_time_is_included
  ✅ test_type_is_correct
src.server.oasisapi.queues.tests.test_filter_queues_info.FilterQueuesInfo
  ✅ test_info_not_supplied___data_from_get_queues_info_is_filtered_by_queue_name
  ✅ test_info_not_supplied___data_from_supplied_info_is_filtered_by_queue_name
src.server.oasisapi.queues.tests.test_send_task_status_message.SendTaskStatusMessage
  ✅ test_build_status_message_is_sent_to_the_channel_layer
tests.test_settings.SettingsGet
  ✅ test_config_file_is_set_in_environment_variable___specified_values_are_from_new_config_others_are_default
  ✅ test_variable_is_set_in_default___default_value_is_returned
  ✅ test_variable_is_set_in_global_and_section_env_setting_and_default___setting_env_value_is_returned
  ✅ test_variable_is_set_in_global_env_setting_and_default___env_value_is_returned
  ✅ test_variable_is_set_in_section_and_default___section_value_is_returned
tests.test_settings.SettingsSetupLogging
  ✅ test_oasis_logging_is_setup_correctly
tests.test_tasks.StartAnalysis
  ✅ test_custom_model_runner_does_not_exist___generate_losses_is_called_output_files_are_tared_up
  ✅ test_input_location_is_not_a_tar___exception_is_raised
tests.test_tasks.StartAnalysisTask
  ✅ test_lock_is_acquireable___start_analysis_is_ran
  ✅ test_lock_is_not_acquireable___retry_esception_is_raised