Skip to content

Commit

Permalink
action modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelbaker-cisa committed Jul 26, 2024
1 parent a9e011a commit 42f0e05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/actions/initialize-scubagoggles/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,23 @@ runs:
cache-dependency-path: ${{ inputs.cache-dependency-path }}

- name: Setup virtualenv for Windows
if: ${{ inputs.operating-system == "windows" }}
if: ${{ inputs.operating-system }} == "windows"
shell: powershell
run: |
pip install virtualenv
python -m venv .venv
.venv\Scripts\activate
- name: Setup virtualenv for MacOS
if: ${{ inputs.operating-system == "macos" }}
if: ${{ inputs.operating-system }} == "macos"
shell: bash
run: |
pip install virtualenv
virtualenv -p python .venv
source .venv/bin/activate
- name: Install dependencies
shell: powershell
run: |
python -m pip install .
pip install -r requirements.txt
Expand All @@ -48,4 +49,4 @@ runs:
pip install -y numpy==1.26.4
- name: Download OPA executable
run: python download_opa.py -v ${{ inputs.opa-version }} -os ${{ inputs.operating-system }}
run: python download_opa.py -v ${{ inputs.opa-version }} -os ${{ inputs.operating-system }}
5 changes: 4 additions & 1 deletion .github/workflows/run_smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@ jobs:

- name: Execute ScubaGoggles and check for correct output
run: |
echo "in second step"
echo "in second step"
# Give OPA executable execute permissions
chmod +x opa_darwin_amd64

0 comments on commit 42f0e05

Please sign in to comment.