Skip to content

Commit

Permalink
move location of cache step; add shell=True to test
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelbaker-cisa committed Jul 25, 2024
1 parent 40ac102 commit 8169f43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/run_smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Setup virtualenv
run: |
Expand All @@ -53,4 +45,10 @@ jobs:
run: |
echo "In step to execute ScubaGoggles smoke test"
echo $env:GWS_SERVICE_ACCOUNT
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="$env:GWS_SERVICE_ACCOUNT"
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="$env:GWS_SERVICE_ACCOUNT"
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
2 changes: 1 addition & 1 deletion Testing/Functional/SmokeTests/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_venv_creation(self):

def test_scubagoggles(self, subjectemail):
command = f"scubagoggles gws --subjectemail {subjectemail} --quiet"
subprocess.run(command)
subprocess.run(command, shell=True)

prefix = "GWSBaselineConformance"
directories = [d for d in os.listdir() if os.path.isdir(d) and d.startswith(prefix)]
Expand Down

0 comments on commit 8169f43

Please sign in to comment.