mirror of
https://github.com/samsledje/D-SCRIPT.git
synced 2026-06-04 15:04:24 +08:00
Create codecov_workflow.yml
This commit is contained in:
committed by
GitHub
parent
bfc1ec0a93
commit
5af348cd01
23
.github/workflows/codecov_workflow.yml
vendored
Normal file
23
.github/workflows/codecov_workflow.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: CodeCov
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
OS: ubuntu-latest
|
||||
PYTHON: '3.7'
|
||||
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 pytest
|
||||
- name: Upload Coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
Reference in New Issue
Block a user