test.yml workflow codacy report issue
Opened this issue · 1 comments
qchempku2017 commented
Expected Behavior
codacy report should work with any matrix.python_version == any python version without specific condition
Current Behavior
Currently, codacy report can only work with python 3.9 without other condition.
If python 3.11 is used, must add condition: matrix.python_version == '3.11' && github.repository == github.event.pull_request.head.repo.full_name
alongside matrix version check.
Possible Solution
Possibly requires a future update of codacy-coverage-reporter or the github testing environment.
Steps to Reproduce
Context
Detailed Description
Possible Implementation
qchempku2017 commented
This seemingly can be resolved by writing the condition as ${{ matrix.python_version == 3.11 && github.event_name == 'push'}} instead of ${{ matrix.python_version == 3.11}}.
I have not figured out why that works.