generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 22
47 lines (42 loc) · 1.24 KB
/
run_smoke_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
env:
SCUBA_GITHUB_AUTOMATION_CREDS: ${{ secrets.SCUBA_GITHUB_AUTOMATION_CREDS }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup virtualenv
run: |
pip3 install virtualenv
python -m venv .venv
.venv\Scripts\activate
- name: Install dependencies
run: |
pip3 install -r requirements.txt
pip3 install -U 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"
echo ${$env:SCUBA_GITHUB_AUTOMATION_CREDS.subjectemail}
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="${$env:SCUBA_GITHUB_AUTOMATION_CREDS.subjectemail}"