From d82346373a622f80c66855f1af8f6cec4f8d318a Mon Sep 17 00:00:00 2001 From: Taylor Fore Date: Tue, 23 Apr 2024 16:17:35 -0500 Subject: [PATCH] ci: abstract requirements file path --- .github/workflows/test_ansible.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_ansible.yml b/.github/workflows/test_ansible.yml index 2bbe4d6..dba2f1e 100644 --- a/.github/workflows/test_ansible.yml +++ b/.github/workflows/test_ansible.yml @@ -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 @@ -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 }}