Skip to content

67 fix code scanning alert high severity improper control of generation of code code injection vulnerability in setupt #3

67 fix code scanning alert high severity improper control of generation of code code injection vulnerability in setupt

67 fix code scanning alert high severity improper control of generation of code code injection vulnerability in setupt #3

name: Code Climate Coverage Report
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
workflow_call:
secrets:
cc_test_reporter_id:
required: true
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [ "3.8" ]
steps:
- uses: actions/checkout@main
- name: Setup Python
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install pytest
pip install pytest-cov
- name: Check PYTHONPATH
run: |
pwd
export PYTHONPATH=.:$PYTHONPATH
- name: Upload coverage to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: python -m pytest tests/ -v --cov-report term-missing --cov=lessons --cov-report=xml
debug: true