Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
checkout: false

- shell: bash
run : rm -rf stage
run: rm -rf stage

- uses: ./
with:
Expand All @@ -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"
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,23 +109,23 @@ 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 }}
path: .build-variables

- name: Setup python
uses: actions/setup-python@v4
if: inputs.setup-python
if: ${{ fromJSON(inputs.setup-python) }}
with:
python-version: 3.x

- name: Setup autobuild
shell: bash
env:
VERSION: ${{ inputs.autobuild-version }}
if: inputs.setup-autobuild
if: ${{ fromJSON(inputs.setup-autobuild) }}
run: |
if [[ $VERSION = *.*.* ]]; then
pip install autobuild==$VERSION
Expand Down