Skip to content

Feature/19 add GitHub actions #1

Feature/19 add GitHub actions

Feature/19 add GitHub actions #1

Triggered via pull request September 12, 2023 14:31
Status Failure
Total duration 45s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

tests.yml

on: pull_request
unit-tests
35s
unit-tests
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 notices
unit-tests
Cannot read .coverage files because files are absolute. You need to configure coverage to write relative paths by adding the following option to your coverage configuration file: [run] relative_files = true Note that the specific format can be slightly different if you're using setup.cfg or pyproject.toml. See details in: https://coverage.readthedocs.io/en/6.2/config.html#config-run-relative-files
unit-tests
Critical error. This error possibly occurred because the permissions of the workflow are set incorrectly. You can see the correct setting of permissions here: https://github.com/py-cov-action/python-coverage-comment-action#basic-usage Otherwise please look for open issues or open one in https://github.com/py-cov-action/python-coverage-comment-action/ Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/coverage_comment/subprocess.py", line 18, in run return subprocess.run( ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '('coverage', 'json', '-o', '-')' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/coverage_comment/main.py", line 39, in main exit_code = action( ^^^^^^^ File "/usr/local/lib/python3.11/site-packages/coverage_comment/main.py", line 75, in action raw_coverage, coverage = coverage_module.get_coverage_info( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/coverage_comment/coverage.py", line 78, in get_coverage_info subprocess.run("coverage", "json", "-o", "-", path=coverage_path) File "/usr/local/lib/python3.11/site-packages/coverage_comment/subprocess.py", line 27, in run raise SubProcessError("\n".join([exc.stdout, exc.stderr])) from exc coverage_comment.subprocess.SubProcessError: No source for code: '/home/runner/work/regtech-user-fi-management/regtech-user-fi-management/src/__init__.py'.
unit-tests
Starting action
unit-tests