Skip to content

Commit

Permalink
ci: add codacy coverage reporter step for Python 3.12 and jinja2
Browse files Browse the repository at this point in the history
  • Loading branch information
pwwang committed Jan 15, 2025
1 parent 6f5eb62 commit 3bd9ef2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/actions/liquidpy_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ runs:
pip install ${{ inputs.jinja2_version }}
- name: Test with pytest
shell: bash
run: pytest tests/ --junitxml=junit/test-results-${{ inputs.python-version }}-${{ inputs.jinja2_version }}.xml

- name: Upload pytest test results
Expand All @@ -35,9 +36,3 @@ runs:
path: junit/test-results-${{ inputs.python-version }}-${{ inputs.jinja2_version }}.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@master
if: inputs.python-version == '3.12' && inputs.jinja2_version == 'jinja2'
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: cov.xml
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ jobs:
python-version: ${{ matrix.python-version }}
jinja2-version: ${{ matrix.jinja2 }}

- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@master
if: matrix.python-version == '3.12' && matrix.jinja2_version == 'jinja2'
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: cov.xml

deploy:
needs: Test_Python_38_plus
runs-on: ubuntu-24.04
Expand Down

0 comments on commit 3bd9ef2

Please sign in to comment.