From a9c58a1902cfc541b74cc0971023ecd8086d809e Mon Sep 17 00:00:00 2001 From: Mitchel Baker Date: Wed, 10 Jul 2024 01:03:07 +0000 Subject: [PATCH] cleanup, add run_smoke_test workflow --- .github/workflows/run_smoke_test.yml | 25 +++++++++++++++++++++ Testing/Functional/SmokeTests/smoke_test.py | 12 ++-------- 2 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/run_smoke_test.yml diff --git a/.github/workflows/run_smoke_test.yml b/.github/workflows/run_smoke_test.yml new file mode 100644 index 00000000..6485fa54 --- /dev/null +++ b/.github/workflows/run_smoke_test.yml @@ -0,0 +1,25 @@ +name: Smoke Test +on: + pull_request: + types: [opened, reopened] + branches: + - "main" + pull_request_review: + types: [submitted] + push: + branches: + - "main" + - "*smoke*" +jobs: + smoke-test-windows: + name: Smoke Test for Windows OS + runs-on: windows-latest + env: + SCUBA_GITHUB_AUTOMATION_CREDS: ${{ secrets.SCUBA_GITHUB_AUTOMATION_CREDS }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Execute ScubaGoggles and check for correct output + run: | + echo "In step to execute ScubaGoggles" \ No newline at end of file diff --git a/Testing/Functional/SmokeTests/smoke_test.py b/Testing/Functional/SmokeTests/smoke_test.py index 8e49ded3..3a5554f5 100644 --- a/Testing/Functional/SmokeTests/smoke_test.py +++ b/Testing/Functional/SmokeTests/smoke_test.py @@ -9,23 +9,15 @@ from smoke_test_utils import verify_all_outputs_exist, verify_output_type -""" - Test virtualenv setup, activation - - Test installing dependencies for running scuba.py script - - Test installing dependencies for running scubagoggles directly - -""" - class SmokeTest: def test_venv_creation(self): - result = subprocess.run(["dir", ".venv"], shell=True, capture_output=True, text=True) + result = subprocess.run(["ls", ".venv"], shell=True, capture_output=True, text=True) if "Scripts" in result.stdout: assert True else: assert False, f"Scripts was not found in the virtual environment" + def test_scubagoggles(self, subjectemail): command = f"scubagoggles gws --subjectemail {subjectemail} --quiet" subprocess.run(command)