Skip to content

Commit

Permalink
cleanup, add run_smoke_test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelbaker-cisa committed Jul 10, 2024
1 parent 2f65e1b commit a9c58a1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/run_smoke_test.yml
Original file line number Diff line number Diff line change
@@ -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"
12 changes: 2 additions & 10 deletions Testing/Functional/SmokeTests/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a9c58a1

Please sign in to comment.