Skip to content

Commit

Permalink
Update run_smoke_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelbaker-cisa authored Sep 7, 2024
1 parent 65c91b7 commit 4eba5a9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/run_smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,33 @@ on:
os:
description: "Choose operating system(s), format must be an array of strings:"
type: string
default: "['windows-latest', 'macos-latest']"
default: "'windows-latest', 'macos-latest'"
python-version:
description: "Choose python version(s), format must be an array of strings:"
type: string
default: "['3.10']"
default: "'3.10'"
opa-version:
description: "Choose OPA version"
required: true
type: string
default: "0.59.0"

env:
OS_DEFAULT: "['windows-latest', 'macos-latest']"
PYTHON_VERSION_DEFAULT: "['3.10']"
OS_DEFAULT: ${{ inputs.os || "'windows-latest', 'macos-latest'" }}
PYTHON_VERSION_DEFAULT: ${{ inputs.python-version || "'3.10'" }}

jobs:
smoke-test:
environment: Development
strategy:
fail-fast: false
matrix:
os: ${{ fromJSON(inputs.os) }}
#os: ${{ fromJSON(inputs.os) }}
os: ['${{ env.OS_DEFAULT }}']
# See https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json,
# ctrl + f and search "python-3.<minor>.<patch>-<darwin-arm64/win32/linux>" for supported versions
python-version: ${{ fromJSON(inputs.python-version) }}
#python-version: ${{ fromJSON(inputs.python-version) }}
python-version: ['${{ env.PYTHON_VERSION_DEFAULT }}']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
Expand Down

0 comments on commit 4eba5a9

Please sign in to comment.