Skip to content

Commit 90d530a

Browse files
Initial wire up
1 parent 843ef13 commit 90d530a

4 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on: [push]
2+
3+
jobs:
4+
test_setup_python:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Install python
9+
uses: .
10+
with:
11+
python-version: 3.8
12+
- name: Test installation
13+
run: |
14+
python --version

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# IntelliJ IDE folder
2+
.idea/

action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Setup python amazon linux'
2+
description: 'Adds support to install python in amazon linux'
3+
inputs:
4+
python-version:
5+
description: 'Version of python to be installed'
6+
required: true
7+
runs:
8+
using: "composite"
9+
steps:
10+
- id: setup-python
11+
shell: bash
12+
run: |
13+
./install-python.sh ${{ inputs.python-version }}
14+
branding:
15+
icon: 'code'
16+
color: 'yellow'

install-python.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function setup_python() {
2+
echo "installing python..."
3+
}
4+
5+
setup_python

0 commit comments

Comments
 (0)