Skip to content

Commit

Permalink
smoke_test workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelbaker-cisa committed Jul 26, 2024
1 parent ae58471 commit 31e7a4c
Showing 1 changed file with 30 additions and 16 deletions.
46 changes: 30 additions & 16 deletions .github/workflows/run_smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,53 @@ jobs:
smoke-test-windows:
name: Smoke Test for Windows OS
runs-on: windows-latest
defaults:
run:
shell: powershell
env:
SCUBA_GITHUB_AUTOMATION_CREDS: ${{ secrets.SCUBA_GITHUB_AUTOMATION_CREDS }}
GWS_SERVICE_ACCOUNT: ${{ secrets.GWS_SERVICE_ACCOUNT }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install pytest
run: pip3 install pytest

- name: Setup virtualenv
- name: Run
run: |
pip3 install virtualenv
python -m venv .venv
.venv\Scripts\activate
- name: Check virtualenv creation
run: pytest ./Testing/Functional/SmokeTests/ -k "SmokeTest and test_venv_creation"

- name: Install dependencies
run: |
python -m pip3 install .
pip3 install -r requirements.txt
pip3 install pytest
- name: Download OPA executable
run: python download_opa.py -v 0.60.0 -os windows
python download_opa.py -v 0.60.0 -os windows
- name: Execute ScubaGoggles and check for correct output
run: |
echo "In step to execute ScubaGoggles smoke test"
.venv\Scripts\activate
scubagoggles gws
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="$env:GWS_SERVICE_ACCOUNT"
#- name: Setup virtualenv
# run: |
# pip3 install virtualenv
# python -m venv .venv
# .venv\Scripts\activate
#
#- name: Check virtualenv creation
# run: pytest ./Testing/Functional/SmokeTests/ -k "SmokeTest and test_venv_creation"
#
#- name: Install dependencies
# run: |
# python -m pip3 install .
# pip3 install -r requirements.txt
#
#- name: Download OPA executable
# run: python download_opa.py -v 0.60.0 -os windows
#
#- name: Execute ScubaGoggles and check for correct output
# run: |
# echo "In step to execute ScubaGoggles smoke test"
# .venv\Scripts\activate
# scubagoggles gws
# pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="$env:GWS_SERVICE_ACCOUNT"

- name: Cache dependencies
uses: actions/cache@v3
Expand Down

0 comments on commit 31e7a4c

Please sign in to comment.