-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathaction.yml
More file actions
27 lines (25 loc) · 823 Bytes
/
Copy pathaction.yml
File metadata and controls
27 lines (25 loc) · 823 Bytes
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: pytest
description: installs package, runs pytest and creates coverage report.
inputs:
backend:
description: which database backend to use
required: false
args:
description: arguments that are passed to pytest, e.g. "-k filter" or "tests/integration"
required: false
runs:
using: composite
steps:
- name: Run Integration Tests
shell: bash -l {0}
run: |
flit install -s
if [[ "${{ inputs.backend }}" != "" ]]; then
pytest --cov=datajudge --cov-report=xml --cov-append --backend=${{ inputs.backend }} ${{ inputs.args }}
else
pytest --cov=datajudge --cov-report=xml --cov-append ${{ inputs.args }}
fi
- name: Generate code coverage report
uses: codecov/codecov-action@v3.1.3
with:
file: ./coverage.xml