Skip to content

Merge from master

Merge from master #925

---
name: Code Climate Coverage Report
on: # yamllint disable-line rule:truthy
workflow_call:
secrets:
cc_test_reporter_id:
required: true
jobs:
run:
runs-on: ${{ matrix.os }}
# Adding 'timeout-minutes: 10' would prevent jobs from running
# indefinitely if something goes wrong
timeout-minutes: 10
strategy:
matrix:
os: ['ubuntu-24.04']
python-version: ["3.X"]
steps:
- uses: actions/checkout@main
- name: Setup Python
uses: actions/setup-python@main
with:
python-version: "3.12"
check-latest: true
- name: Check Python version
run: python --version
- name: Check PYTHONPATH
run: |
pwd
export PYTHONPATH=.:$PYTHONPATH
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install --upgrade wheel
python -m pip install --no-cache-dir -r requirements.txt --upgrade
- name: Install pytest, pytest-cov
run: |
python -m pip install pytest
python -m pip install pytest-cov
- name: Check pytest, pytest-cov version
run: |
python -m pytest --version
- name: Upload coverage to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.cc_test_reporter_id }}
with:
# yamllint disable rule:line-length
coverageCommand:
python -m pytest . -v --cov-report term-missing --cov-report=xml --cov=./ --junitxml=junit.xml -o junit_family=legacy --debug
debug: true
# yamllint enable rule:line-length
- name: List test files
run: |
ls *.xml