Skip to content

Commit

Permalink
Update codecov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
John Anchery committed Jul 21, 2021
1 parent ca35bb4 commit 886314f
Showing 1 changed file with 16 additions and 31 deletions.
47 changes: 16 additions & 31 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,24 @@
name: Codecov Report

on:
push:
branches: [ main ]

name: CodeCov
on: [push, pull_request]
jobs:
test-upload:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]

env:
PYTHON: ${{ matrix.python-version }}
OS: ubuntu-latest
PYTHON: '3.9'
steps:
- uses: actions/checkout@v2
- uses: checkout@v2
with:
fetch-depth: ‘2’

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Generate coverage report
python-version: 3.7
- name: Generate Report
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
pip install coverage
coverage run -m pytest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: PYTHON
fail_ci_if_error: true
files: ./coverage1.xml,./coverage2.xml
flags: unittests
name: codecov-umbrella
path_to_write_report: ./coverage/codecov_report.txt
verbose: false

0 comments on commit 886314f

Please sign in to comment.