Skip to content

Commit

Permalink
ci: abstract requirements file path
Browse files Browse the repository at this point in the history
  • Loading branch information
trfore authored Apr 23, 2024
1 parent 43f29e5 commit d823463
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test_ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ on:
default: "" # ex: "-s SCENARIO_NAME"
required: false
type: string

requirements_file:
default: "requirements.txt"
required: false
type: string
jobs:
molecule:
runs-on: ubuntu-latest
Expand All @@ -38,7 +41,7 @@ jobs:
python-version: "3.x"

- name: Install dependencies
run: pip install -r requirements.txt
run: pip install -r ${{ inputs.requirements_file }}

- name: Run molecule test
run: molecule test ${{ inputs.molecule_scenario }}

0 comments on commit d823463

Please sign in to comment.