Skip to content

workflow adjustment #44

workflow adjustment

workflow adjustment #44

Workflow file for this run

name: Run 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*"
env:
GWS_SUBJECT_EMAIL: ${{ secrets.GWS_SUBJECT_EMAIL }}
GWS_GITHUB_AUTOMATION_CREDS: ${{ secrets.GWS_GITHUB_AUTOMATION_CREDS }}
jobs:
smoke-test-windows:
name: Smoke Test for Windows
runs-on: windows-latest
defaults:
run:
shell: powershell
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Initialize ScubaGoggles
uses: ./.github/actions/initialize-scubagoggles
with:
python-version: "3.12"
cache-dependency-path: "requirements.txt"
- name: Setup dependencies
uses: ./.github/actions/setup-windows-dependencies
with:
operating-system: "windows"
opa-version: "0.60.0"
- name: Execute ScubaGoggles and check for correct output
run: |
# Setup credentials for service account
Set-Content -Path credentials.json -Value $env:GWS_GITHUB_AUTOMATION_CREDS
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="$env:GWS_SUBJECT_EMAIL"
smoke-test-macos:
name: Smoke Test for Mac OS
runs-on: macos-latest
defaults:
run:
shell: bash
needs: smoke-test-windows
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Initialize ScubaGoggles
uses: ./.github/actions/initialize-scubagoggles
with:
python-version: "3.12"
cache-dependency-path: "requirements.txt"
- name: Setup dependencies
uses: ./.github/actions/setup-macos-dependencies
with:
operating-system: "macos"
opa-version: "0.60.0"
- name: Execute ScubaGoggles and check for correct output
run: |
echo "in second step"
# Give OPA executable execute permissions
chmod +x opa_darwin_amd64
# Setup credentials for service account
echo "$env:GWS_GITHUB_AUTOMATION_CREDS" > credentials.json
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="$env:GWS_SUBJECT_EMAIL"