From 942c0388cdf0680bb07f1929bae9245cd9d0ee58 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 17 Jun 2024 18:38:22 -0400 Subject: [PATCH 01/12] add privacy field to calls api test --- test/smoke/test_calls_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/smoke/test_calls_api.py b/test/smoke/test_calls_api.py index 0dea554e..5a4cf79c 100644 --- a/test/smoke/test_calls_api.py +++ b/test/smoke/test_calls_api.py @@ -57,6 +57,7 @@ def setUp(self): self.createCallBody = CreateCall( to=USER_NUMBER, var_from=BW_NUMBER, + privacy=True, application_id=BW_VOICE_APPLICATION_ID, answer_url=BASE_CALLBACK_URL, answer_method=CallbackMethodEnum("POST"), From 89d6ba85c00fbf0a49cedf9ce2df6fdee5fd698c Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 17 Jun 2024 18:38:30 -0400 Subject: [PATCH 02/12] remove unused env var --- test/utils/env_variables.py | 1 - 1 file changed, 1 deletion(-) diff --git a/test/utils/env_variables.py b/test/utils/env_variables.py index a6d11ef8..d9a89c73 100644 --- a/test/utils/env_variables.py +++ b/test/utils/env_variables.py @@ -7,7 +7,6 @@ BW_MESSAGING_APPLICATION_ID = os.environ['BW_MESSAGING_APPLICATION_ID'] BW_VOICE_APPLICATION_ID = os.environ['BW_VOICE_APPLICATION_ID'] BASE_CALLBACK_URL = os.environ['BASE_CALLBACK_URL'] - BW_NUMBER_PROVIDER = os.environ['BW_NUMBER_PROVIDER'] BW_NUMBER = os.environ['BW_NUMBER'] VZW_NUMBER = os.environ['VZW_NUMBER'] ATT_NUMBER = os.environ['ATT_NUMBER'] From cd4657a087830c8a240a9de443678640ef1673f8 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 17 Jun 2024 18:38:57 -0400 Subject: [PATCH 03/12] update recordings smoke tests to use new method names --- test/smoke/test_recordings_api.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/test/smoke/test_recordings_api.py b/test/smoke/test_recordings_api.py index 17c9c4bf..bd8c44f7 100644 --- a/test/smoke/test_recordings_api.py +++ b/test/smoke/test_recordings_api.py @@ -219,8 +219,8 @@ def test_successful_call_recording(self) -> None: - get_call_recording - download_call_recording - transcribe_call_recording - - get_call_transcription - - delete_call_transcription + - get_recording_transcription + - delete_recording_transcription - delete_recording_media - delete_recording """ @@ -288,7 +288,7 @@ def test_successful_call_recording(self) -> None: assert_that(call_status['callTranscribed'], equal_to(True)) # Get the transcription - transcription_response = self.recordings_api_instance.get_call_transcription_with_http_info( + transcription_response = self.recordings_api_instance.get_recording_transcription_with_http_info( BW_ACCOUNT_ID, call_id, recording_id) assert_that(transcription_response.status_code, equal_to(200)) # Check response code @@ -302,11 +302,11 @@ def test_successful_call_recording(self) -> None: )) # Delete the transcription - delete_transcription_response = self.recordings_api_instance.delete_call_transcription_with_http_info( + delete_transcription_response = self.recordings_api_instance.get_recording_transcription_with_http_info( BW_ACCOUNT_ID, call_id, recording_id) assert_that(delete_transcription_response.status_code, equal_to(204)) # Check response code - assert_that(calling(self.recordings_api_instance.get_call_transcription).with_args( + assert_that(calling(self.recordings_api_instance.get_recording_transcription).with_args( BW_ACCOUNT_ID, call_id, recording_id), raises(NotFoundException)) # Delete Recording media @@ -454,28 +454,28 @@ def test_4xx_errors(self) -> None: assert_that(call_status['callTranscribed'], equal_to(True)) # Use the unauthorized client to get transcripion (401) - assert_that(calling(self.unauthorized_recordings_api_instance.get_call_transcription).with_args( + assert_that(calling(self.unauthorized_recordings_api_instance.get_recording_transcription).with_args( BW_ACCOUNT_ID, call_id, recording_id), raises(UnauthorizedException)) # Non-existent account id (403) - assert_that(calling(self.recordings_api_instance.get_call_transcription).with_args( + assert_that(calling(self.recordings_api_instance.get_recording_transcription).with_args( "not an account id", call_id, recording_id), raises(ForbiddenException)) # Non-existent recording id (404) - assert_that(calling(self.recordings_api_instance.get_call_transcription).with_args( + assert_that(calling(self.recordings_api_instance.get_recording_transcription).with_args( BW_ACCOUNT_ID, call_id, "not a recording id"), raises(NotFoundException)) # Delete Transcription # Use the unauthorized client to delete transcripion (401) - assert_that(calling(self.unauthorized_recordings_api_instance.delete_call_transcription).with_args( + assert_that(calling(self.unauthorized_recordings_api_instance.delete_recording_transcription).with_args( BW_ACCOUNT_ID, call_id, recording_id), raises(UnauthorizedException)) # Non-existent account id (403) - assert_that(calling(self.recordings_api_instance.delete_call_transcription).with_args( + assert_that(calling(self.recordings_api_instance.delete_recording_transcription).with_args( "not an account id", call_id, recording_id), raises(ForbiddenException)) # Non-existent recording id (404) - assert_that(calling(self.recordings_api_instance.delete_call_transcription).with_args( + assert_that(calling(self.recordings_api_instance.delete_recording_transcription).with_args( BW_ACCOUNT_ID, call_id, "not a recording id"), raises(NotFoundException)) # Delete Recording Media From 3ff6e7f7b44990d1679ecfd5deae16ef73ea323c Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 17 Jun 2024 18:41:01 -0400 Subject: [PATCH 04/12] add files for stats and transcriptions apis --- test/smoke/test_statistics_api.py | 0 test/smoke/test_transcriptions_api.py | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/smoke/test_statistics_api.py create mode 100644 test/smoke/test_transcriptions_api.py diff --git a/test/smoke/test_statistics_api.py b/test/smoke/test_statistics_api.py new file mode 100644 index 00000000..e69de29b diff --git a/test/smoke/test_transcriptions_api.py b/test/smoke/test_transcriptions_api.py new file mode 100644 index 00000000..e69de29b From f643ee84ef66db3e2e1de562741ca19f0ddf56a4 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 17 Jun 2024 18:54:53 -0400 Subject: [PATCH 05/12] update smoke test header blocks --- test/smoke/test_calls_api.py | 2 +- test/smoke/test_conferences_api.py | 2 +- test/smoke/test_media_api.py | 2 +- test/smoke/test_messages_api.py | 10 +--------- test/smoke/test_recordings_api.py | 10 +--------- 5 files changed, 5 insertions(+), 21 deletions(-) diff --git a/test/smoke/test_calls_api.py b/test/smoke/test_calls_api.py index 5a4cf79c..03b90049 100644 --- a/test/smoke/test_calls_api.py +++ b/test/smoke/test_calls_api.py @@ -1,5 +1,5 @@ """ -Integration test for Bandwidth's Voice Voice Calls API +Integration test for Bandwidth's Voice Calls API """ from bandwidth import ApiResponse from test.utils.env_variables import * diff --git a/test/smoke/test_conferences_api.py b/test/smoke/test_conferences_api.py index e222c7b4..4af01266 100644 --- a/test/smoke/test_conferences_api.py +++ b/test/smoke/test_conferences_api.py @@ -1,5 +1,5 @@ """ -Integration tests for Bandwidth's Voice Voice Conferences API +Integration tests for Bandwidth's Voice Conferences API """ from cgi import test diff --git a/test/smoke/test_media_api.py b/test/smoke/test_media_api.py index 3c7dd6c4..23147811 100644 --- a/test/smoke/test_media_api.py +++ b/test/smoke/test_media_api.py @@ -1,5 +1,5 @@ """ -Integration test for Bandwidth's Media API +Integration test for Bandwidth's Messaging Media API """ import uuid diff --git a/test/smoke/test_messages_api.py b/test/smoke/test_messages_api.py index 8e5bcb27..074350a0 100644 --- a/test/smoke/test_messages_api.py +++ b/test/smoke/test_messages_api.py @@ -1,13 +1,5 @@ """ - Bandwidth - - - Bandwidth's Communication APIs # noqa: E501 - - - The version of the OpenAPI document: 1.0.0 - Contact: letstalk@bandwidth.com - Generated by: https://openapi-generator.tech +Integration test for Bandwidth's Messaging API """ import os diff --git a/test/smoke/test_recordings_api.py b/test/smoke/test_recordings_api.py index bd8c44f7..e631a7a0 100644 --- a/test/smoke/test_recordings_api.py +++ b/test/smoke/test_recordings_api.py @@ -1,14 +1,6 @@ """ - Bandwidth - - Bandwidth's Communication APIs # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: letstalk@bandwidth.com - Generated by: https://openapi-generator.tech +Integration test for Bandwidth's Voice Recordings API """ - - import os from typing import Dict, List, Tuple import unittest From e094bc6cafc2bf8ad031242701bc8ff143c76d68 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 17 Jun 2024 18:55:03 -0400 Subject: [PATCH 06/12] add statistics smoke tests --- test/smoke/test_statistics_api.py | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/test/smoke/test_statistics_api.py b/test/smoke/test_statistics_api.py index e69de29b..2e99f0e7 100644 --- a/test/smoke/test_statistics_api.py +++ b/test/smoke/test_statistics_api.py @@ -0,0 +1,41 @@ +""" +Integration test for Bandwidth's Statistics API +""" +import unittest +import logging + +from hamcrest import * +from bandwidth import ApiClient, Configuration +from bandwidth.api.statistics_api import StatisticsApi +from bandwidth.models import AccountStatistics +from test.utils.env_variables import * + + +class TestStatisticsApi(unittest.TestCase): + """StatisticsApi integration Test + """ + + def setUp(self): + configuration = Configuration( + username=BW_USERNAME, + password=BW_PASSWORD + ) + self.api_client = ApiClient(configuration) + self.api_instance = StatisticsApi(self.api_client) + self.account_id = BW_ACCOUNT_ID + + def test_get_statistics(self): + api_response_with_http_info = self.api_instance.get_statistics_with_http_info(self.account_id) + + logging.debug(api_response_with_http_info) + assert_that(api_response_with_http_info.status_code, equal_to(200)) + + api_response = self.api_instance.get_statistics(self.account_id) + assert_that(api_response, instance_of(AccountStatistics)) + assert_that(api_response, has_properties( + 'current_call_queue_size', instance_of(int), + 'max_call_queue_size', instance_of(int) + )) + +if __name__ == '__main__': + unittest.main() From 8c1e2d0e3542c7ae6474ec19ab3611c52edce8b2 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Mon, 17 Jun 2024 18:55:53 -0400 Subject: [PATCH 07/12] fill in skeleton of transcriptions test --- test/smoke/test_transcriptions_api.py | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/test/smoke/test_transcriptions_api.py b/test/smoke/test_transcriptions_api.py index e69de29b..71d4543c 100644 --- a/test/smoke/test_transcriptions_api.py +++ b/test/smoke/test_transcriptions_api.py @@ -0,0 +1,41 @@ +""" +Integration test for Bandwidth's Voice Transcriptions API +""" +import unittest + +from bandwidth.api.transcriptions_api import TranscriptionsApi + + +class TestTranscriptionsApi(unittest.TestCase): + """TranscriptionsApi integration Test""" + + def setUp(self) -> None: + self.api = TranscriptionsApi() + + def tearDown(self) -> None: + pass + + def test_delete_real_time_transcription(self) -> None: + """Test case for delete_real_time_transcription + + Delete a specific transcription + """ + pass + + def test_get_real_time_transcription(self) -> None: + """Test case for get_real_time_transcription + + Retrieve a specific transcription + """ + pass + + def test_list_real_time_transcriptions(self) -> None: + """Test case for list_real_time_transcriptions + + Enumerate transcriptions made with StartTranscription + """ + pass + + +if __name__ == '__main__': + unittest.main() From 150d3000ec4b40a2ffd00e637c7a2a0c121bbd5a Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 18 Jun 2024 10:45:30 -0400 Subject: [PATCH 08/12] transcriptions --- test/smoke/test_transcriptions_api.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/smoke/test_transcriptions_api.py b/test/smoke/test_transcriptions_api.py index 71d4543c..44c871f5 100644 --- a/test/smoke/test_transcriptions_api.py +++ b/test/smoke/test_transcriptions_api.py @@ -3,6 +3,7 @@ """ import unittest +from bandwidth import ApiClient, Configuration from bandwidth.api.transcriptions_api import TranscriptionsApi @@ -10,7 +11,14 @@ class TestTranscriptionsApi(unittest.TestCase): """TranscriptionsApi integration Test""" def setUp(self) -> None: - self.api = TranscriptionsApi() + configuration = Configuration( + username=BW_USERNAME, + password=BW_PASSWORD + ) + api_client = ApiClient(configuration) + + self.calls_api_instance = calls_api.CallsApi(api_client) + self.transcriptions_api_instance = transcriptions_api.TranscriptionsApi(api_client) def tearDown(self) -> None: pass From c525ce3b91283f70b0258ce2717acadec0564902 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 18 Jun 2024 13:44:39 -0400 Subject: [PATCH 09/12] 403 from manteca :( --- test/smoke/test_transcriptions_api.py | 74 +++++++++++++++++++++++++-- 1 file changed, 70 insertions(+), 4 deletions(-) diff --git a/test/smoke/test_transcriptions_api.py b/test/smoke/test_transcriptions_api.py index 44c871f5..7f03a46d 100644 --- a/test/smoke/test_transcriptions_api.py +++ b/test/smoke/test_transcriptions_api.py @@ -2,9 +2,15 @@ Integration test for Bandwidth's Voice Transcriptions API """ import unittest +import time +from hamcrest import * from bandwidth import ApiClient, Configuration +from bandwidth.rest import RESTClientObject, RESTResponse from bandwidth.api.transcriptions_api import TranscriptionsApi +from bandwidth.api.calls_api import CallsApi +from bandwidth.models import CreateCall +from test.utils.env_variables import * class TestTranscriptionsApi(unittest.TestCase): @@ -17,11 +23,71 @@ def setUp(self) -> None: ) api_client = ApiClient(configuration) - self.calls_api_instance = calls_api.CallsApi(api_client) - self.transcriptions_api_instance = transcriptions_api.TranscriptionsApi(api_client) + self.calls_api_instance = CallsApi(api_client) + self.transcriptions_api_instance = TranscriptionsApi(api_client) + + # Rest client for interacting with Manteca + self.rest_client = RESTClientObject(Configuration.get_default_copy()) + + # Call ID Array + self.callIdArray = [] + + def test_create_call(self) -> None: + + # Initialize the call with Manteca + response = self.rest_client.request( + method='POST', + url=MANTECA_BASE_URL + '/tests', + body={ + 'os': OPERATING_SYSTEM, + 'language': 'python' + PYTHON_VERSION, + 'type': 'CALL' + }, + headers={ + 'Content-Type': 'application/json' + } + ) + print(response.response.data) + print(MANTECA_BASE_URL + '/tests') + + # Get the test id from the response + test_id = response.response.data.decode("utf-8") + answer_url = MANTECA_BASE_URL + '/bxml/idle' + print(answer_url) + print(test_id) + + # Make a CreateCall body and assign the appropriate params + call_body = CreateCall(to=MANTECA_IDLE_NUMBER, var_from=MANTECA_ACTIVE_NUMBER, + application_id=MANTECA_APPLICATION_ID, answer_url=answer_url, tag=test_id) + + # Make the call + create_call_response: CreateCallResponse = self.calls_api_instance.create_call( + BW_ACCOUNT_ID, call_body) + # assert_that(create_call_response.status_code, equal_to(201)) + + # Get the call id from the response + self.call_id = create_call_response.call_id + + # Adding the call to the callIdArray + self.callIdArray.append(create_call_response.call_id) + + + time.sleep(3) + print("Call ID: " + self.call_id) + start_transcription_bxml = "" + start_response = self.calls_api_instance.update_call_bxml_with_http_info( + BW_ACCOUNT_ID, self.call_id, start_transcription_bxml) + assert_that(start_response.status_code, equal_to(204)) + + # stop_transcription_bxml = "" + # stop_response = self.calls_api_instance.update_call_bxml_with_http_info( + # BW_ACCOUNT_ID, self.call_id, stop_transcription_bxml) + # assert_that(response.stop_response, equal_to(204)) + + # end_response = self.calls_api_instance.update_call_with_http_info( + # BW_ACCOUNT_ID, self.call_id, {"state": "completed"}) + # assert_that(end_response.status_code, equal_to(200)) - def tearDown(self) -> None: - pass def test_delete_real_time_transcription(self) -> None: """Test case for delete_real_time_transcription From 70b4dd4bb47c04d07fbaf2a97511cbc14d4b6880 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 18 Jun 2024 15:56:50 -0400 Subject: [PATCH 10/12] finalize transcriptions tests --- test/smoke/test_transcriptions_api.py | 93 +++++++++++++++++++-------- 1 file changed, 66 insertions(+), 27 deletions(-) diff --git a/test/smoke/test_transcriptions_api.py b/test/smoke/test_transcriptions_api.py index 7f03a46d..dda936ef 100644 --- a/test/smoke/test_transcriptions_api.py +++ b/test/smoke/test_transcriptions_api.py @@ -9,7 +9,7 @@ from bandwidth.rest import RESTClientObject, RESTResponse from bandwidth.api.transcriptions_api import TranscriptionsApi from bandwidth.api.calls_api import CallsApi -from bandwidth.models import CreateCall +from bandwidth.models import CreateCall, CallTranscriptionMetadata, CallTranscriptionResponse, CallTranscription from test.utils.env_variables import * @@ -31,8 +31,12 @@ def setUp(self) -> None: # Call ID Array self.callIdArray = [] + self.SLEEP_TIME_SEC = 3 - def test_create_call(self) -> None: + # Transcription ID + self.transcription_id: str + + def create_call_transcription(self) -> None: # Initialize the call with Manteca response = self.rest_client.request( @@ -47,14 +51,10 @@ def test_create_call(self) -> None: 'Content-Type': 'application/json' } ) - print(response.response.data) - print(MANTECA_BASE_URL + '/tests') # Get the test id from the response test_id = response.response.data.decode("utf-8") answer_url = MANTECA_BASE_URL + '/bxml/idle' - print(answer_url) - print(test_id) # Make a CreateCall body and assign the appropriate params call_body = CreateCall(to=MANTECA_IDLE_NUMBER, var_from=MANTECA_ACTIVE_NUMBER, @@ -72,44 +72,83 @@ def test_create_call(self) -> None: self.callIdArray.append(create_call_response.call_id) - time.sleep(3) - print("Call ID: " + self.call_id) + time.sleep(self.SLEEP_TIME_SEC) start_transcription_bxml = "" start_response = self.calls_api_instance.update_call_bxml_with_http_info( BW_ACCOUNT_ID, self.call_id, start_transcription_bxml) assert_that(start_response.status_code, equal_to(204)) - # stop_transcription_bxml = "" - # stop_response = self.calls_api_instance.update_call_bxml_with_http_info( - # BW_ACCOUNT_ID, self.call_id, stop_transcription_bxml) - # assert_that(response.stop_response, equal_to(204)) - - # end_response = self.calls_api_instance.update_call_with_http_info( - # BW_ACCOUNT_ID, self.call_id, {"state": "completed"}) - # assert_that(end_response.status_code, equal_to(200)) + stop_transcription_bxml = "" + stop_response = self.calls_api_instance.update_call_bxml_with_http_info( + BW_ACCOUNT_ID, self.call_id, stop_transcription_bxml) + assert_that(stop_response.status_code, equal_to(204)) + time.sleep(self.SLEEP_TIME_SEC) + end_response = self.calls_api_instance.update_call_with_http_info( + BW_ACCOUNT_ID, self.call_id, {"state": "completed"}) + assert_that(end_response.status_code, equal_to(200)) - def test_delete_real_time_transcription(self) -> None: - """Test case for delete_real_time_transcription + def list_real_time_transcriptions(self) -> None: + """Test case for list_real_time_transcriptions - Delete a specific transcription + Enumerate transcriptions made with StartTranscription """ - pass + time.sleep(self.SLEEP_TIME_SEC * 20) + response = self.transcriptions_api_instance.list_real_time_transcriptions_with_http_info( + BW_ACCOUNT_ID, self.call_id) + + assert_that(response.status_code, equal_to(200)) + assert_that(response.data, instance_of(list)) + assert_that(response.data[0], instance_of(CallTranscriptionMetadata)) + assert_that(response.data[0].transcription_id, instance_of(str)) + assert_that(response.data[0].transcription_url, instance_of(str)) - def test_get_real_time_transcription(self) -> None: + self.transcription_id = response.data[0].transcription_id + + def get_real_time_transcription(self) -> None: """Test case for get_real_time_transcription Retrieve a specific transcription """ - pass - - def test_list_real_time_transcriptions(self) -> None: - """Test case for list_real_time_transcriptions + response = self.transcriptions_api_instance.get_real_time_transcription_with_http_info( + BW_ACCOUNT_ID, self.call_id, self.transcription_id) + + assert_that(response.status_code, equal_to(200)) + assert_that(response.data, instance_of(CallTranscriptionResponse)) + assert_that(response.data.account_id, equal_to(BW_ACCOUNT_ID)) + assert_that(response.data.call_id, equal_to(self.call_id)) + assert_that(response.data.transcription_id, equal_to(self.transcription_id)) + assert_that(response.data.tracks, instance_of(list)) + assert_that(response.data.tracks[0], instance_of(CallTranscription)) + assert_that(response.data.tracks[0].track, equal_to('inbound')) + assert_that(response.data.tracks[0].confidence, instance_of(float)) + + def delete_real_time_transcription(self) -> None: + """Test case for delete_real_time_transcription - Enumerate transcriptions made with StartTranscription + Delete a specific transcription + """ + response = self.transcriptions_api_instance.delete_real_time_transcription_with_http_info( + BW_ACCOUNT_ID, self.call_id, self.transcription_id) + + assert_that(response.status_code, equal_to(200)) + + def _steps(self): + call_order = [ + 'create_call_transcription', + 'list_real_time_transcriptions', + 'get_real_time_transcription', + 'delete_real_time_transcription' + ] + for name in call_order: + yield name, getattr(self, name) + + def test_steps(self) -> None: + """Test each function from _steps.call_order in specified order """ - pass + for name, step in self._steps(): + step() if __name__ == '__main__': unittest.main() From 25139a26d3bb8ed4667c095d3592b2ac2f64ce67 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 18 Jun 2024 15:56:57 -0400 Subject: [PATCH 11/12] update smoke test wf --- .github/workflows/{test-nightly.yml => test-smoke.yml} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename .github/workflows/{test-nightly.yml => test-smoke.yml} (96%) diff --git a/.github/workflows/test-nightly.yml b/.github/workflows/test-smoke.yml similarity index 96% rename from .github/workflows/test-nightly.yml rename to .github/workflows/test-smoke.yml index 15325927..2c01e53b 100644 --- a/.github/workflows/test-nightly.yml +++ b/.github/workflows/test-smoke.yml @@ -1,4 +1,4 @@ -name: Nightly Smoke Tests +name: Smoke Tests on: schedule: @@ -13,6 +13,9 @@ on: options: - WARNING - DEBUG + pull_request: + paths: + - 'test/smoke/**' concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} @@ -39,7 +42,7 @@ env: jobs: test: - name: Nightly Smoke Test + name: Smoke Test runs-on: ubuntu-latest env: PYTHON_VERSION: '3.12' From a7bcfc355dc330041e599991d643d976fab44bf7 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 18 Jun 2024 15:59:04 -0400 Subject: [PATCH 12/12] only main --- .github/workflows/test-smoke.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-smoke.yml b/.github/workflows/test-smoke.yml index 2c01e53b..e3cd470d 100644 --- a/.github/workflows/test-smoke.yml +++ b/.github/workflows/test-smoke.yml @@ -14,6 +14,8 @@ on: - WARNING - DEBUG pull_request: + branches: + - main paths: - 'test/smoke/**'