Skip to content

Commit

Permalink
Remove old code coverage code
Browse files Browse the repository at this point in the history
BenediktBurger committed Jan 31, 2024
1 parent dd2a799 commit 3d8baeb
Showing 2 changed files with 2 additions and 76 deletions.
76 changes: 1 addition & 75 deletions .github/workflows/pyleco_CI.yml
Original file line number Diff line number Diff line change
@@ -68,81 +68,7 @@ jobs:
run: mypy .

test_coverage:
name: Code Coverage
runs-on: "ubuntu-latest"
permissions:
contents: write
pull-requests: write
issues: write
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pyleco requirements
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
cache-environment-key: pylatest-ubuntu-latest-mamba-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
cache-downloads: false
- name: Python version
run: python --version
- name: Install Pyleco
# If the pytest problem matcher stops working because of bad paths, do an editable install
run: pip install -e .[dev] # editable for covtest
- name: Test for Coverage
run: pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=pyleco | tee pytest-coverage.txt
- name: Pytest Coverage Comment
id: coverageComment
uses: MishaKav/pytest-coverage-comment@main
continue-on-error: true
with:
pytest-coverage-path: ./pytest-coverage.txt
title: Coverage Report
badge-title: PyLECO Coverage
hide-badge: false
hide-report: false
create-new-comment: false
hide-comment: false
report-only-changed-files: false
remove-link-from-badge: false
unique-id-for-comment: python3
junitxml-path: ./pytest.xml
junitxml-title: Coverage Summary
- name: Check output coverage
if: ${{ success() }}
run: |
echo "Coverage Percentage - ${{ steps.coverageComment.outputs.coverage }}"
echo "Coverage Color - ${{ steps.coverageComment.outputs.color }}"
echo "Coverage Html - ${{ steps.coverageComment.outputs.coverageHtml }}"
echo "Coverage Warnings - ${{ steps.coverageComment.outputs.warnings }}"
echo "Coverage Errors - ${{ steps.coverageComment.outputs.errors }}"
echo "Coverage Failures - ${{ steps.coverageComment.outputs.failures }}"
echo "Coverage Skipped - ${{ steps.coverageComment.outputs.skipped }}"
echo "Coverage Tests - ${{ steps.coverageComment.outputs.tests }}"
echo "Coverage Time - ${{ steps.coverageComment.outputs.time }}"
echo "Not Success Test Info - ${{ steps.coverageComment.outputs.notSuccessTestInfo }}"
- name: Create the Badge
if: ${{ success() }}
continue-on-error: true
uses: schneegans/dynamic-badges-action@v1.6.0
with:
auth: ${{ secrets.pyleco_coverage_gist_secret }}
gistID: 7a8a7b874b62ed803eb56ca04830bede
filename: pyleco-coverage.json
label: Coverage Report
message: ${{ steps.coverageComment.outputs.coverage }}
color: ${{ steps.coverageComment.outputs.color }}
namedLogo: python

codecov:
name: Code coverage on codecov
name: Code Coverage on codecov
runs-on: "ubuntu-latest"
defaults:
run:
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ The [reviewed branch](https://github.com/pymeasure/pyleco/tree/reviewed) contain
Development happens in the [main](https://github.com/pymeasure/pyleco/tree/main) branch.

Note: LECO is still under development, such that the code and API might change.
The LECO protocol branch [pyleco-stat](https://github.com/pymeasure/leco-protocol/tree/pyleco-state) contains the assumptions used in this project, which are not yet accepted into the LECO main branch.
The LECO protocol branch [pyleco-state](https://github.com/pymeasure/leco-protocol/tree/pyleco-state) contains the assumptions used in this project, which are not yet accepted into the LECO main branch.
These things might change, if LECO defines them differently.

![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/BenediktBurger/7a8a7b874b62ed803eb56ca04830bede/raw/pyleco-coverage.json)

0 comments on commit 3d8baeb

Please sign in to comment.