Skip to content

Commit

Permalink
Added codecov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davemlz committed Aug 12, 2021
1 parent 025ea6a commit 7da4d5f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: codecov
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: execute
run: |
python ./.github/scripts/update_ee_token.py
env:
EE_TOKEN: ${{ secrets.EE_TOKEN }}
- name: tests
run: |
tox -e py
- uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage.xml

upload-to-codecov:
needs: [tests]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v2
- name: Upload to Codecov
uses: codecov/codecov-action@v2
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ jobs:
- name: tests
run: |
tox -e py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2

0 comments on commit 7da4d5f

Please sign in to comment.