adjust pip3 -> pip #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Smoke Test | |
on: | |
workflow_call: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, reopened] | |
branches: | |
- "main" | |
pull_request_review: | |
types: [submitted] | |
push: | |
paths: | |
- ".github/workflows/run_smoke_test.yml" | |
branches: | |
- "main" | |
- "*smoke*" | |
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: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
- name: Setup virtualenv | |
run: | | |
pip install virtualenv | |
python -m venv .venv | |
.venv\Scripts\activate | |
- name: Install dependencies | |
run: | | |
python -m pip install . | |
pip install -r requirements.txt | |
pip install pytest | |
- 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" | |
pip show scubagoggles | |
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="$env:GWS_SERVICE_ACCOUNT" |