Skip to content

Commit

Permalink
Parametrize test file used by test runner
Browse files Browse the repository at this point in the history
Signed-off-by: Real Novo, Luis <[email protected]>
  • Loading branch information
lerealno committed Jan 14, 2025
1 parent df00c2a commit ef1d130
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test-runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ Inputs for the action:
description: 'Path to Test Dir'
required: true
type: string
test_file:
description: 'Name of the test file to use'
required: false
type: string
default: 'tests.yaml'
token:
required: true
type: string
Expand Down
7 changes: 6 additions & 1 deletion test-runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ inputs:
description: 'Path to Test Dir'
required: true
type: string
test_file:
description: 'Name of the test file to use'
required: false
type: string
default: 'tests.yaml'
token:
required: true
type: string
Expand All @@ -56,7 +61,7 @@ runs:
python -m pip install -r mlops/test-runner/requirements.txt
- name: Test
shell: bash
run: venv/bin/python mlops/test-runner/test_runner.py -f ${{ inputs.test_dir }}/tests.yaml -l ${{ inputs.test_dir }}/logs -a ${{ inputs.recipe_dir }}/.actions.json -v
run: venv/bin/python mlops/test-runner/test_runner.py -f ${{ inputs.test_dir }}/${{ inputs.test_file }} -l ${{ inputs.test_dir }}/logs -a ${{ inputs.recipe_dir }}/.actions.json -v
env:
CACHE_REGISTRY: ${{ inputs.cache_registry }}
PYTHONPATH: mlops/test-runner
Expand Down

0 comments on commit ef1d130

Please sign in to comment.