-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 991 Bytes
/
tests.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
name: Run project tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: Run django tests
uses: ./.github/actions/in-container
with:
use_dev_image: false
run: |
cp conf/settings.py-example conf/settings.py
mkdir -p data
mkdir -p applogs
script/bootstrap
script/test --coverage
# do this inside the docker container otherwise the paths don't work
- name: generate coverage xml
uses: ./.github/actions/in-container
with:
run: coverage xml
# do this outside the docker container otherwise can't get repo details
- name: upload code coverage
run: |
less coverage.xml
pip install codecov
codecov