Skip to content

Commit

Permalink
feat: adding coverage with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
haidaraM committed Nov 3, 2020
1 parent 2818675 commit 44d5b8f
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.7, 3.8 ]
python-version: [ 3.7, 3.8 ]
ansible-version: [ 2.8.6, 2.9.0, 2.9.14 ]

steps:
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Install Python prereqs
run: |
pip install ansible==${{ matrix.ansible-version }} virtualenv setuptools wheel
pip install -r tests/requirements_tests.txt
pip install -r tests/requirements_tests.txt coveralls
pip freeze
- name: Install Os prereqs
Expand All @@ -44,3 +44,21 @@ jobs:

- name: Test test_install
run: make test_install

- name: Upload Coverage
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: py${{ matrix.python-version }}-ansible${{ matrix.ansible-version }}
COVERALLS_PARALLEL: true

coveralls:
runs-on: ubuntu-20.04
needs: pytest
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 44d5b8f

Please sign in to comment.