generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (37 loc) · 1.12 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
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: Setup virtualenv
run: |
pip3 install virtualenv
python -m venv .venv
.venv\Scripts\activate
python -c "import sys; print(sys.prefix != sys.base_prefix)"
- name: Install dependencies
run: |
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"
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="${$env:SCUBA_GITHUB_AUTOMATION_CREDS.subjectemail}"