Skip to content

Commit

Permalink
Upload code coverage to codecov.io
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Oct 2, 2022
1 parent 9075774 commit 4aee7ad
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Lint with flake8
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Code Coverage
on:
push:
pull_request:
branches: [ master ]
jobs:
coverage:
if: github.repository_owner == 'arkq'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Generate Coverage Report
run: |
pip install coverage
coverage run --include=src/* setup.py pytest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
- '*'
jobs:
deploy:
if: github.repository_owner == 'arkq'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
Expand Down

0 comments on commit 4aee7ad

Please sign in to comment.