Closed
Description
I think similar to #109 where it doesn't work for GoLang, it also doesn't work for Python coverage:
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v2.4.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CodeClimate }}
with:
coverageCommand: coverage run -m unittest discover test
debug: true
Results in:
./cc-reporter before-build
coverage run -m unittest discover test
##[error]Error: There was an error when attempting to execute the process 'coverage'. This may indicate the process failed to start. Error: spawn coverage ENOENT
##[error]🚨 Coverage run failed!
(node:4858) UnhandledPromiseRejectionWarning: Error: There was an error when attempting to execute the process 'coverage'. This may indicate the process failed to start. Error: spawn coverage ENOENT
at ExecState._setResult (/home/runner/work/_actions/paambaati/codeclimate-action/v2.4.0/node_modules/@actions/exec/lib/toolrunner.js:545:25)
at ExecState.CheckComplete (/home/runner/work/_actions/paambaati/codeclimate-action/v2.4.0/node_modules/@actions/exec/lib/toolrunner.js:531:18)
at ChildProcess.<anonymous> (/home/runner/work/_actions/paambaati/codeclimate-action/v2.4.0/node_modules/@actions/exec/lib/toolrunner.js:418:27)
at ChildProcess.emit (events.js:210:5)
at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(node:4858) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4858) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.