-
Notifications
You must be signed in to change notification settings - Fork 1k
28 lines (28 loc) · 1.01 KB
/
pytest.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
name: pytest
on:
pull_request:
paths:
- 'library/**.py'
- 'module_utils/**.py'
- 'plugins/filter/**.py'
- 'tests/library/**.py'
- 'tests/module_utils/**.py'
- 'tests/plugins/filter/**.py'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: pip install -r tests/requirements.txt
- run: pytest --cov=library/ --cov=module_utils/ --cov=plugins/filter/ -vvvv tests/library/ tests/module_utils/ tests/plugins/filter/
env:
PYTHONPATH: "$PYTHONPATH:/home/runner/work/ceph-ansible/ceph-ansible/library:/home/runner/work/ceph-ansible/ceph-ansible/module_utils:/home/runner/work/ceph-ansible/ceph-ansible/plugins/filter:/home/runner/work/ceph-ansible/ceph-ansible"