Skip to content

Commit

Permalink
try venv experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
rlxdev committed Jan 15, 2025
1 parent 8715985 commit ecb8436
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/actions/setup-dependencies-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup virtualenv
- name: Setup virtual environment and install dependencies
shell: powershell
run: |
python -m venv .venv
.venv\Scripts\activate.ps1
- name: Install dependencies
shell: powershell
run: |
${{ env.SCUBAGOGGLES_ACTIVATE_VENV }}
python -m pip install .
pip install -r requirements.txt
pip install pytest
Expand All @@ -29,5 +25,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 }}
10 changes: 9 additions & 1 deletion .github/workflows/run_smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ jobs:
cache: "pip"
cache-dependency-path: "requirements.txt"

- name: Virtual Environment Activation Definition
if: ${{ matrix.operating-system == 'windows-latest' }}
run: >
echo "SCUBAGOGGLES_ACTIVATE_VENV=.venv\Scripts\activate.ps1"
>> $GITHUB_ENV
- name: Setup Dependencies (Windows)
if: ${{ matrix.operating-system == 'windows-latest' }}
uses: ./.github/actions/setup-dependencies-windows
Expand All @@ -106,4 +112,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 ecb8436

Please sign in to comment.