-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
42 lines (36 loc) · 994 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Pytest summary
description: Run tests using pytest and display summary
author: Dario Curreri
branding:
icon: check-square
color: gray-dark
inputs:
extensions:
description: The pytest extensions to install along pytest
required: false
options:
description: The pytest options
required: false
output:
description: The path to the output file to create
required: false
paths:
description: The path to the folder containing the tests
required: false
default: tests
show:
description: Which tests have to be shown in the summary
required: false
runs:
using: composite
steps:
- run: pip install pytest ${{ inputs.extensions }}
shell: bash
- run: pytest ${{ inputs.options }} --junit-xml=.test_report.xml ${{ inputs.paths }}
shell: bash
- uses: test-summary/[email protected]
with:
paths: .test_report.xml
output: ${{ inputs.output }}
show: ${{ inputs.show }}
if: always()