Update of the TangoShutter Hardware object and class #221
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage Report | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
paths: | |
- '**.py' | |
jobs: | |
pytest-coverage: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y libsasl2-dev libldap2-dev libssl-dev | |
python -m pip install --upgrade pip | |
python -m pip install poetry --user | |
python -m poetry install --extras=tango | |
- name: Run and write pytest | |
run: | | |
set -o pipefail | |
poetry run pytest --cov=mxcubecore --junitxml=pytest.xml --cov-report=term-missing:skip-covered | tee pytest-coverage.txt | |
- name: Pytest coverage comment | |
id: coverage-comment | |
uses: MishaKav/[email protected] | |
with: | |
repo-token: ${{ secrets.CI_TOKEN }} | |
pytest-coverage-path: ./pytest-coverage.txt | |
junitxml-path: ./pytest.xml | |
report-only-changed-files: true | |
- name: Check the output coverage | |
run: | | |
echo "Coverage Percantage - ${{ steps.coverage-comment.outputs.coverage }}" | |
echo "Coverage Warnings - ${{ steps.coverage-comment.outputs.warnings }}" | |
echo "Coverage Errors - ${{ steps.coverage-comment.outputs.errors }}" | |
echo "Coverage Failures - ${{ steps.coverage-comment.outputs.failures }}" | |
echo "Coverage Skipped - ${{ steps.coverage-comment.outputs.skipped }}" | |
echo "Coverage Tests - ${{ steps.coverage-comment.outputs.tests }}" | |
echo "Coverage Time - ${{ steps.coverage-comment.outputs.time }}" |