Skip to content

Commit

Permalink
ci: add code coverage integration (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Dec 18, 2023
1 parent 001f2f7 commit 4b02506
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 50 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,27 @@ jobs:
path: |
${{ github.workspace }}/artifacts
- name: Test with pytest
id: test
shell: bash
run: |
python -m pytest \
-rxXs \
--tb=native \
--verbose \
--cov=pyra \
tests
- name: Upload coverage to Codecov
uses: Wandalen/wretry.action@v1
with:
action: codecov/codecov-action@v3
attempt_delay: 10000
attempt_limit: 10
with: |
fail_ci_if_error: true
flags: ${{ runner.os }}-${{ matrix.architecture }}
- name: Create/Update GitHub Release
if: ${{ needs.setup_release.outputs.publish_release == 'true' }}
uses: LizardByte/[email protected]
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/python-tests.yml

This file was deleted.

12 changes: 9 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ Integrations
:alt: Read the Docs
:target: http://retroarcher.readthedocs.io/

.. image:: https://img.shields.io/badge/dynamic/json?color=blue&label=localized&style=for-the-badge&query=%24.progress..data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-15178612-503340.json&logo=crowdin
:alt: CrowdIn
:target: https://crowdin.com/project/retroarcher
.. image:: https://img.shields.io/codecov/c/gh/LizardByte/RetroArcher?token=5C47NYBSBV&style=for-the-badge&logo=codecov&label=codecov
:alt: Codecov
:target: https://codecov.io/gh/LizardByte/RetroArcher

CrowdIn Localization
^^^^^^^^^^^^^^^^^^^^
.. image:: https://app.lizardbyte.dev/uno/crowdin/LizardByte_graph.svg
:alt: CrowdIn graph
:target: https://translate.lizardbyte.dev

Support
---------
Expand Down
15 changes: 15 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
codecov:
branch: master

coverage:
status:
project:
default:
target: auto
threshold: 10%

comment:
layout: "diff, flags, files"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
flake8==6.1.0
pyinstaller==6.3.0
pytest==7.4.3
pytest-cov==4.1.0
rstcheck[sphinx]==6.2.0

0 comments on commit 4b02506

Please sign in to comment.