Skip to content

Commit

Permalink
Fix codecov upload (#36)
Browse files Browse the repository at this point in the history
* use codecov action instead of manual upload

* add pre-commit status badge
  • Loading branch information
JoshKarpel committed Nov 18, 2020
1 parent e87b95e commit 89e4737
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:

runs-on: ${{ matrix.platform }}

env:
PLATFORM: ${{ matrix.platform }}
PYTHON_VERSION: ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -27,6 +31,9 @@ jobs:
pip install --upgrade pip
pip install .[tests]
- name: Test with pytest
run: pytest --cov -- tests/
- name: Upload coverage
run: codecov -t ${{secrets.CODECOV_TOKEN}}
run: pytest --cov --cov-report=xml tests/
- uses: codecov/codecov-action@v1
with:
env_vars: PLATFORM,PYTHON_VERSION
fail_ci_if_error: true
verbose: true
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
idesolver
---------

.. image:: http://joss.theoj.org/papers/9d3ba306da6abb37f7cf357cd9aad695/status.svg
:target: http://joss.theoj.org/papers/9d3ba306da6abb37f7cf357cd9aad695

.. image:: https://readthedocs.org/projects/idesolver/badge/?version=latest
:target: https://idesolver.readthedocs.io/en/latest/?badge=latest

.. image:: https://codecov.io/gh/JoshKarpel/idesolver/branch/master/graph/badge.svg
:target: https://codecov.io/gh/JoshKarpel/idesolver

.. image:: http://joss.theoj.org/papers/9d3ba306da6abb37f7cf357cd9aad695/status.svg
:target: http://joss.theoj.org/papers/9d3ba306da6abb37f7cf357cd9aad695
.. image:: https://results.pre-commit.ci/badge/github/JoshKarpel/idesolver/master.svg
:target: https://results.pre-commit.ci/latest/github/JoshKarpel/idesolver/master
:alt: pre-commit.ci status

A general purpose numeric integro-differential equation (IDE) solver, based on an iterative scheme devised by `Gelmi and Jorquera <https://doi.org/10.1016/j.cpc.2013.09.008>`_.
IDEs appear in many contexts, particularly when trying to describe a system whose current behavior depends on its own history.
Expand Down

0 comments on commit 89e4737

Please sign in to comment.