Skip to content

Commit

Permalink
Replace badge and reference to Coveralls with Codecov
Browse files Browse the repository at this point in the history
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
  • Loading branch information
hakonanes committed Jan 1, 2025
1 parent 070a508 commit e5e01aa
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
coverage report --show-missing
- name: Upload coverage reports to Codecov
if: ${{ github.repository_owner == 'pyxem' }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with kikuchipy. If not, see <http://www.gnu.org/licenses/>.##
## along with kikuchipy. If not, see <http://www.gnu.org/licenses/>.
##
repos:
# https://docs.astral.sh/ruff/configuration
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand All @@ -39,4 +40,4 @@ repos:
ci:
autofix_prs: false
# TODO: Remove skip once (nearly) all files are formatted with the license template
skip: [licenseheaders]
skip: [licenseheaders]
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ library.
.. |python| image:: https://img.shields.io/badge/python-3.10+-blue.svg
:target: https://www.python.org/downloads/

.. |Coveralls| image:: https://coveralls.io/repos/github/pyxem/kikuchipy/badge.svg?branch=develop
:target: https://coveralls.io/github/pyxem/kikuchipy?branch=develop
.. |coverage| image:: https://codecov.io/github/hakonanes/kikuchipy/graph/badge.svg?token=tyF8x9nJKC
:target: https://codecov.io/github/pyxem/kikuchipy

.. |pypi_downloads| image:: https://img.shields.io/pypi/dm/kikuchipy.svg?label=pypi%20downloads
:target: https://pypi.org/project/kikuchipy
Expand Down Expand Up @@ -54,7 +54,7 @@ library.
+----------------------+------------------------------------------------+
| Build status | |tests_status| |docs| |python| |
+----------------------+------------------------------------------------+
| Metrics | |Coveralls| |
| Metrics | |coverage| |
+----------------------+------------------------------------------------+
| Activity | |pypi_downloads| |conda_downloads| |
+----------------------+------------------------------------------------+
Expand Down
11 changes: 6 additions & 5 deletions doc/dev/continuous_integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ Continuous integration (CI)
===========================

We use `GitHub Actions <https://github.com/pyxem/kikuchipy/actions>`__ to ensure that
kikuchipy can be installed on Windows, macOS and Linux (Ubuntu). After a successful
installation of the package, the CI server runs the tests. After the tests return no
errors, code coverage is reported to `Coveralls
<https://coveralls.io/github/pyxem/kikuchipy?branch=develop>`__. Add ``"[skip ci]"``
to a commit message to skip this workflow on any commit to a pull request.
kikuchipy can be installed on Windows, macOS, and Linux (Ubuntu).
After a successful installation of the package, the CI server runs the tests.
After the tests return no errors, code coverage is reported to `Codecov
<https://app.codecov.io/github/pyxem/kikuchipy>`__.
Add ``"[skip ci]"`` to a commit message to skip this workflow on any commit to a pull
request.

0 comments on commit e5e01aa

Please sign in to comment.