Skip to content

Commit

Permalink
Update and rename workflow.yml to coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gutzbenj committed Jun 21, 2020
1 parent 6cfbd84 commit 6d52178
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/coverage.yml
@@ -0,0 +1,31 @@
name: Workflow for Codecov
on: [push]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
env:
OS: ${{ matrix.os }}
PYTHON: '3.7.7'
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.7.7
- name: Generate coverage report
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: pytest
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
2 changes: 0 additions & 2 deletions .github/workflows/workflow.yml

This file was deleted.

0 comments on commit 6d52178

Please sign in to comment.