Skip to content

Commit

Permalink
Update tox workflow #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludee committed Dec 6, 2024
1 parent fe30aea commit fad2f04
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
test:
name: Run tests and create codecov
name: Run coverage test and create codecov
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: pip install pytest pytest-cov

- name: Run tests
- name: Run coverage test
run: pytest --cov --cov-report=xml

- name: Upload results to Codecov
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2023 Jonas Huber <https://github.com/jh-rli> © Reiner Lemoine Institut
# SPDX-License-Identifier: MIT

name: automated-testing
name: tox

on:
push:
Expand All @@ -13,7 +13,6 @@ on:
jobs:
test:
strategy:
# fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest]
python-version: ['3.10']
Expand All @@ -39,5 +38,5 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
pip install tox tox-gh-actions
- name: tox unit tests
- name: Run tox unit tests
run: tox -e ${{ matrix.tox-envs }}
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Examples of branch names: `feature-42-add-new-ontology-class`, `feature-911-bran

- Divide your feature into small logical units
- Start to write the documentation or a docstring
- Write a unit test that covers the desired outputs and possible errors
- Don't rush, have the commit messages in mind
- Add your changes to the CHANGELOG.md

Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ super-repo
* - License
- |badge_license| |badge_reuse|
* - Documentation
- |badge_documentation| |badge_tests| |badge_codecov|
- |badge_documentation| |badge_tox| |badge_codecov|
* - Publication
- |badge_pypi| |badge_python| |badge_pypi_downloads|
* - Development
Expand Down Expand Up @@ -78,8 +78,8 @@ License and Citation
:target: https://rl-institut.github.io/super-repo/
:alt: Documentation

.. |badge_tests| image:: https://github.com/rl-institut/super-repo/actions/workflows/automated-testing.yml/badge.svg
:target: https://github.com/rl-institut/super-repo/actions/workflows/automated-testing.yml
.. |badge_tox| image:: https://github.com/rl-institut/super-repo/actions/workflows/tox.yml/badge.svg
:target: https://github.com/rl-institut/super-repo/actions/workflows/tox.yml
:alt: Documentation

.. |badge_codecov| image:: https://codecov.io/gh/rl-institut/super-repo/graph/badge.svg?token=YYCJI3D5G5
Expand Down

0 comments on commit fad2f04

Please sign in to comment.