Merge from master #906
This file contains hidden or 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: Code Climate Coverage Report | |
on: # yamllint disable-line rule:truthy | |
pull_request_target: | |
branches: | |
- 'none' | |
types: | |
- opened | |
- edited | |
- synchronize | |
- reopened | |
workflow_call: | |
secrets: | |
cc_test_reporter_id: | |
required: true | |
jobs: | |
run: | |
runs-on: ${{ matrix.os }} | |
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 setuptools | |
python -m pip install pytest | |
pip install -r requirements.txt | |
pip install pytest-cov | |
- 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=./ | |
# yamllint enable rule:line-length | |
debug: true |