-
Notifications
You must be signed in to change notification settings - Fork 250
44 lines (35 loc) · 980 Bytes
/
coverage.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
name: 'coverage'
on:
push:
schedule:
- cron: '0 0 * * 5'
jobs:
coverage:
runs-on: ubuntu-latest
env:
DOCKER_REGISTRY: docker.pkg.github.com
IMAGE: docker.pkg.github.com/vunit/vunit/dev:llvm
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Docker login
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "$GITHUB_TOKEN" | docker login -u vunit-gha --password-stdin "$DOCKER_REGISTRY"
docker pull $IMAGE
docker logout "$DOCKER_REGISTRY"
- name: Run coverage
run: |
./.github/run.sh tox -e coverage
./.github/run.sh coverage html --directory=htmlcov
- name: Report coverage
run: ./.github/run.sh coverage report -m --skip-covered
- uses: actions/upload-artifact@v2
with:
name: VUnit_coverage
path: htmlcov