Skip to content

Reporting coverage for matrix build overwrites post #99

@adborden

Description

@adborden

I'm using a matrix build to test multiple versions of Python and frameworks (CKAN). In each case, I'd like to see a report for the test coverage (each in its own PR comment is fine) for each build. However, the action currently overwrites the comment with the last matrix build.

Example workflow with matrix builds:

# .github/workflows/test.yml
jobs:
  test:
    needs: lint
    strategy:
      matrix:
        ckan-version: [2.9, 2.8]  # 2.9 implies py3
      fail-fast: false
  steps:
    - name: Run tests
      run: pytest --ckan-ini=test.ini --cov=ckanext.datagovtheme --disable-warnings ckanext/datagovtheme/tests | tee pytest-coverage.txt
    - name: Report test coverage
      if: ${{ always() }}
      uses: coroo/pytest-coverage-commentator@v1.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions