Skip to content

Commit

Permalink
add codecov to config
Browse files Browse the repository at this point in the history
  • Loading branch information
callmecampos committed Jun 5, 2020
1 parent 1cc6c49 commit a89b8df
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: python -m pip install tox
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade coverage[toml] virtualenv tox
- name: Run tests
run: python -m tox -e py # Run tox using the version of Python in `PATH`
- name: "Convert coverage"
run: "python -m coverage xml"
- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v1"
with:
fail_ci_if_error: true

0 comments on commit a89b8df

Please sign in to comment.