-
Notifications
You must be signed in to change notification settings - Fork 74
45 lines (41 loc) · 997 Bytes
/
codecov.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
43
44
45
name: "[BKLog] CodeCov"
defaults:
run:
working-directory: bklog
on:
push:
paths:
- 'bklog/**'
pull_request:
paths:
- 'bklog/**'
schedule:
- cron: "0 10 * * *"
# https://github.com/actions/checkout/issues/1590
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
run:
# runs-on: ubuntu-20.04
runs-on: self-hosted
defaults:
run:
shell: bash
working-directory: bklog
container:
image: python:3.6.8
steps:
- uses: actions/checkout@v2
- name: Generate Report
run: |
source scripts/test_env.sh
sed -i '/APIGW_ENABLED/d' dev.env.yml
pip install --upgrade pip setuptools
pip install -r requirements.txt
pip install coverage
pip uninstall pycrypto -y
pip uninstall pycryptodome -y
pip install pycryptodome
coverage run manage.py test apps.tests
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1