generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create separate subactions for windows/mac setup
- Loading branch information
1 parent
9903963
commit a77882b
Showing
4 changed files
with
66 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Setup MacOS Dependencies | ||
inputs: | ||
operating-system: | ||
required: true | ||
default: "macos" | ||
opa-version: | ||
required: true | ||
default: "0.60.0" | ||
|
||
runs: | ||
using: "composite" | ||
shell: bash | ||
steps: | ||
- name: Setup virtualenv | ||
run: | | ||
pip install virtualenv | ||
virtualenv -p python .venv | ||
source .venv/bin/activate | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install . | ||
pip install -r requirements.txt | ||
pip install pytest | ||
pip uninstall numpy | ||
pip install -y numpy==1.26.4 | ||
- name: Download OPA executable | ||
run: python download_opa.py -v ${{ inputs.opa-version }} -os ${{ inputs.operating-system }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Setup Windows Dependencies | ||
inputs: | ||
operating-system: | ||
required: true | ||
default: "windows" | ||
opa-version: | ||
required: true | ||
default: "0.60.0" | ||
|
||
runs: | ||
using: "composite" | ||
shell: powershell | ||
steps: | ||
- name: Setup virtualenv | ||
run: | | ||
pip install virtualenv | ||
python -m venv .venv | ||
.venv\Scripts\activate | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install . | ||
pip install -r requirements.txt | ||
pip install pytest | ||
pip uninstall numpy | ||
pip install -y numpy==1.26.4 | ||
- name: Download OPA executable | ||
run: python download_opa.py -v ${{ inputs.opa-version }} -os ${{ inputs.operating-system }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters