Skip to content

Commit

Permalink
Update action workflow
Browse files Browse the repository at this point in the history
- Python would be installed earlier than any other steps.
- It would give flexibility to specify the python version, which is not available on runner machine ( Fixes #4 )
  • Loading branch information
sayyid5416 authored May 19, 2023
1 parent 0c5a7b8 commit 122b4da
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,17 @@ runs:
using: 'composite'
steps:

- name: checks
- name: (Install) python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_ver }}
architecture: ${{ inputs.python_arch }}

- name: (Install) python dev tools
shell: bash
run: python -m pip install pip wheel setuptools

- name: checks for inputs
shell: bash
run: python "${{ github.action_path }}/src/checks.py"
env:
Expand All @@ -65,18 +75,8 @@ runs:
spec: ${{ inputs.spec }}
options: ${{ inputs.options }}

- name: Checkout
- name: Checkout repository
uses: actions/checkout@v3

- name: (Install) python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_ver }}
architecture: ${{ inputs.python_arch }}

- name: (Install) python dev tools
shell: bash
run: python -m pip install pip wheel setuptools

- name: (Install) dependencies
if: inputs.requirements != ''
Expand Down

0 comments on commit 122b4da

Please sign in to comment.