-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
27 lines (27 loc) · 888 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: "Execute Python Testbed"
author: Luke Swanson
description: "This action executes a Python unittest testbed using discovery."
branding:
icon: 'box'
color: 'blue'
inputs:
directory:
description: "The directory in which test discovery should be performed, searching for the `test_file`."
required: true
default: "tests/cases"
test_file:
description: "The python file containing the testbed."
required: true
default: "t_module.py"
python_version:
description: "Which version of Python to install on local GitHub Actions runner."
required: false
default: "3.12"
runs:
using: "composite"
steps:
- name: Set up Python libraries
env:
python_command: python${{ inputs.python_version }}
run: ${{ env.python_command }} -m unittest discover -s ${{ inputs.directory }} -p "${{ inputs.test_file }}" -t ./
shell: bash