-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
40 lines (35 loc) · 924 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
name: Pinax Testing
description: Runs tests
inputs:
python:
description: "What version of Python?"
required: true
django:
descriptoin: "What version of Django?"
required: true
runs:
using: "composite"
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ inputs.python }}
- name: Install Django
shell: bash
run: pip install Django==${{ inputs.django }}
- name: Testing Tools
shell: bash
run: |
pip install .
pip install -r requirements.testing.txt
- name: Running Python Tests
shell: bash
run: ./test.sh
- name: Upload Coverage Report
if: inputs.django == '3.2.*' && inputs.python == '3.10'
shell: bash
run: |
pip install codecov
coverage xml
codecov --required -X search gcov pycov -f coverage.xml