Skip to content

Commit d74ea0a

Browse files
authored
Merge pull request #119 from roverflow/codecov
Changes to codecov workflow
2 parents a31efdd + 41593c4 commit d74ea0a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/coverage_network_devices.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
python-version: ${{ env.python_version }}
3131

3232
- name: Install ansible-core (${{ env.ansible-version }})
33-
run: python3 -m pip install ansible-core
33+
run: python3 -m pip install ansible-core pytest pytest-cov pytest-ansible-units pytest-forked pytest-xdist
3434

3535
- name: Read collection metadata from galaxy.yml
3636
id: identify
@@ -54,12 +54,11 @@ jobs:
5454

5555
- name: Run Coverage tests
5656
run: |
57-
ansible-test units --python ${{ env.python_version }} --coverage --requirements
58-
ansible-test coverage xml
57+
pytest tests -v --cov-report xml --cov=./
5958
working-directory: ${{ steps.identify.outputs.collection_path }}
6059

6160
- name: Upload coverage report to Codecov
6261
uses: codecov/codecov-action@v3
6362
with:
6463
directory: ${{ steps.identify.outputs.collection_path }}
65-
fail_ci_if_error: true
64+
fail_ci_if_error: false

0 commit comments

Comments
 (0)