Skip to content

Commit

Permalink
smoke_test: fix failure on Windows GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rlxdev committed Jan 16, 2025
1 parent 8715985 commit 3d799fe
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
13 changes: 8 additions & 5 deletions .github/actions/setup-dependencies-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup virtualenv
- name: Virtual Environment Activation Definition - macOS or linux
shell: bash
run: |
python -m venv .venv
source .venv/bin/activate
run: >
echo "SCUBAGOGGLES_ACTIVATE_VENV=. .venv/bin/activate"
>> "$GITHUB_ENV"
- name: Install dependencies
- name: Setup virtual environment and install dependencies
shell: bash
run: |
python -m venv .venv
${{ env.SCUBAGOGGLES_ACTIVATE_VENV }}
python -m pip install .
pip install -r requirements.txt
pip install pytest
Expand All @@ -29,5 +31,6 @@ runs:
- name: Download OPA executable
shell: bash
run: |
${{ env.SCUBAGOGGLES_ACTIVATE_VENV }}
scubagoggles setup -m -nc -nd -d ~/scubagoggles -r ~/scubagoggles -c credentials.json
scubagoggles getopa -v ${{ inputs.opa-version }}
13 changes: 8 additions & 5 deletions .github/actions/setup-dependencies-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup virtualenv
- name: Virtual Environment Activation Definition - Windows
shell: powershell
run: |
python -m venv .venv
.venv\Scripts\activate.ps1
run: >
echo "SCUBAGOGGLES_ACTIVATE_VENV=.venv\Scripts\activate.ps1"
>> "$Env:GITHUB_ENV"
- name: Install dependencies
- name: Setup virtual environment and install dependencies
shell: powershell
run: |
python -m venv .venv
${{ env.SCUBAGOGGLES_ACTIVATE_VENV }}
python -m pip install .
pip install -r requirements.txt
pip install pytest
Expand All @@ -29,5 +31,6 @@ runs:
- name: Download OPA executable
shell: powershell
run: |
${{ env.SCUBAGOGGLES_ACTIVATE_VENV }}
scubagoggles setup -m -nc -nd -d ~/scubagoggles -r ~/scubagoggles -c credentials.json
scubagoggles getopa -v ${{ inputs.opa-version }}
6 changes: 4 additions & 2 deletions .github/workflows/run_smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
description: "Choose OPA version"
required: true
type: string
default: "v0.60.0"
default: "v1.0.0"

jobs:
configuration:
Expand Down Expand Up @@ -106,4 +106,6 @@ jobs:
json: ${{ secrets.GWS_GITHUB_AUTOMATION_CREDS }}

- name: Run ScubaGoggles and check for correct output
run: pytest ./scubagoggles/Testing/Functional/SmokeTests/ -vvv --subjectemail="${{ secrets.GWS_SUBJECT_EMAIL }}" --customerdomain="${{ secrets.GWS_DOMAIN }}"
run: |
${{ env.SCUBAGOGGLES_ACTIVATE_VENV }}
pytest ./scubagoggles/Testing/Functional/SmokeTests/ -vvv --subjectemail="${{ secrets.GWS_SUBJECT_EMAIL }}" --customerdomain="${{ secrets.GWS_DOMAIN }}"

0 comments on commit 3d799fe

Please sign in to comment.