diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e7055da..06d52c4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -32,7 +32,7 @@ jobs: checkout: false - shell: bash - run : rm -rf stage + run: rm -rf stage - uses: ./ with: @@ -44,3 +44,16 @@ jobs: with: autobuild-version: main checkout: false + + # Test custom python version + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + - uses: ./ + with: + setup-python: false + - name: Check python version + shell: bash + run: | + ver="$(python --version)" + [[ "$ver" == "Python 3.10."* ]] || exit "Expected python 3.10, got $ver" diff --git a/action.yaml b/action.yaml index caa160d..976b2e2 100644 --- a/action.yaml +++ b/action.yaml @@ -109,7 +109,7 @@ runs: - name: Checkout build variables uses: actions/checkout@v3 - if: inputs.checkout-build-variables + if: ${{ fromJSON(inputs.checkout-build-variables) }} with: repository: secondlife/build-variables ref: ${{ inputs.build-variables-ref }} @@ -117,7 +117,7 @@ runs: - name: Setup python uses: actions/setup-python@v4 - if: inputs.setup-python + if: ${{ fromJSON(inputs.setup-python) }} with: python-version: 3.x @@ -125,7 +125,7 @@ runs: shell: bash env: VERSION: ${{ inputs.autobuild-version }} - if: inputs.setup-autobuild + if: ${{ fromJSON(inputs.setup-autobuild) }} run: | if [[ $VERSION = *.*.* ]]; then pip install autobuild==$VERSION