From 8169f433a49d459eabe297c59b9d438744a7d0c6 Mon Sep 17 00:00:00 2001 From: Mitchel Baker Date: Thu, 25 Jul 2024 23:13:47 +0000 Subject: [PATCH] move location of cache step; add shell=True to test --- .github/workflows/run_smoke_test.yml | 16 +++++++--------- Testing/Functional/SmokeTests/smoke_test.py | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/run_smoke_test.yml b/.github/workflows/run_smoke_test.yml index d88844a8..20d2b79c 100644 --- a/.github/workflows/run_smoke_test.yml +++ b/.github/workflows/run_smoke_test.yml @@ -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: | @@ -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" \ No newline at end of file + 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') }} \ No newline at end of file diff --git a/Testing/Functional/SmokeTests/smoke_test.py b/Testing/Functional/SmokeTests/smoke_test.py index 3a5554f5..dac9c502 100644 --- a/Testing/Functional/SmokeTests/smoke_test.py +++ b/Testing/Functional/SmokeTests/smoke_test.py @@ -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)]