-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 1.33 KB
/
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
45
name: NetApp.azure Ansible Coverage
on:
push:
pull_request:
schedule:
- cron: '0 6 * * *'
jobs:
sanity:
name: Coverage on Azure
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install ansible stable-2.11
run: pip install https://github.com/ansible/ansible/archive/stable-2.11.tar.gz --disable-pip-version-check
- name: Make directory to make ansible-test happy
run: |
pwd
mkdir -p ansible_collections/netapp/azure/
rsync -av . ansible_collections/netapp/azure/ --exclude ansible_collections/netapp/azure/
- name: Run Unit Tests
run: ansible-test units --coverage --color --docker --python 3.8
working-directory: ansible_collections/netapp/azure/
# ansible-test support producing code coverage date
- name: Generate coverage report
run: ansible-test coverage xml -v --requirements --group-by command --group-by version
working-directory: ansible_collections/netapp/azure/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
working-directory: ansible_collections/netapp/azure/
verbose: true