added coverage workflow

This commit is contained in:
Abubakar Abid 2021-10-13 22:42:00 -05:00
parent b26355b851
commit c226eabe68
2 changed files with 25 additions and 0 deletions

24
.github/workflows/workflow.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: CodeCov
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
env:
OS: ubuntu-latest
PYTHON: '3.9'
steps:
- uses: checkout@v2
with:
fetch-depth: 2
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.7
- name: Generate Report
run: |
pip install coverage
coverage run -m unittest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
with:

1
.gitignore vendored
View File

@ -7,6 +7,7 @@ gradio.egg-info/*
*.pyc
staticfiles
.env
.coverage
*.sqlite3
.idea/*
*.ipynb