Skip to content

Commit

Permalink
Add codecov support (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicoelhopedro authored Feb 22, 2024
1 parent 31efda9 commit 6386948
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,25 @@ jobs:
- name: Install package
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install -e .
- name: Install test dependencies
run: |
python -m pip install .[test]
- name: Test pipx installation
run: |
python -m pip install pipx
pipx install .
python -m pip install -e .[test]
- name: Lint with flake8
run: |
flake8 piglot test
- name: Test with pytest
run: |
pytest test/
pytest --cov=piglot/ --cov-report=xml test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: CM2S/piglot
- name: Test pipx installation
run: |
python -m pip install pipx
pipx install .
- name: Install documentation dependencies
run: |
python -m pip install .[docs]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
[![PyPI - Version](https://img.shields.io/pypi/v/piglot)](https://pypi.org/project/piglot/)
[![GitHub License](https://img.shields.io/github/license/CM2S/piglot)](https://github.com/CM2S/piglot/blob/main/LICENSE)
[![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/CM2S/piglot)](https://www.codefactor.io/repository/github/cm2s/piglot)
[![codecov](https://codecov.io/github/CM2S/piglot/graph/badge.svg?token=218X85PV2B)](https://codecov.io/github/CM2S/piglot)
[![ReadTheDocs](https://img.shields.io/readthedocs/piglot)](https://piglot.readthedocs.io)

A package for the optimisation of numerical responses.
Expand Down
4 changes: 4 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ piglot
:target: https://www.codefactor.io/repository/github/cm2s/piglot
:alt: CodeFactor Grade

.. image:: https://codecov.io/github/CM2S/piglot/graph/badge.svg?token=218X85PV2B
:target: https://codecov.io/github/CM2S/piglot
:alt: CodeCov

.. image:: https://img.shields.io/readthedocs/piglot
:target: https://piglot.readthedocs.io
:alt: ReadTheDocs
Expand Down

0 comments on commit 6386948

Please sign in to comment.