mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-17 11:29:58 +08:00
added coverage workflow
This commit is contained in:
parent
b26355b851
commit
c226eabe68
24
.github/workflows/workflow.yml
vendored
Normal file
24
.github/workflows/workflow.yml
vendored
Normal 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
1
.gitignore
vendored
@ -7,6 +7,7 @@ gradio.egg-info/*
|
||||
*.pyc
|
||||
staticfiles
|
||||
.env
|
||||
.coverage
|
||||
*.sqlite3
|
||||
.idea/*
|
||||
*.ipynb
|
||||
|
Loading…
Reference in New Issue
Block a user