Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload coverage report on codecov #74

Open
deliaBlue opened this issue Apr 28, 2023 · 0 comments
Open

upload coverage report on codecov #74

deliaBlue opened this issue Apr 28, 2023 · 0 comments

Comments

@deliaBlue
Copy link
Collaborator

The current call to upload the coverage report is:

      - name: submit coverage report
        uses: codecov/codecov-action@v3
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          directory: ./scripts/tests/
          files: .coverage
          fail_ci_if_error: true
          verbose: true

With a codecov.yml file:

fixes:
  - "::scripts/tests/"

codecov:
  require_ci_to_pass: true

comment:
  behavior: default
  layout: reach,diff,flags,tree,reach
  show_carryforward_flags: false

coverage:
  precision: 2
  range:
  - 60.0
  - 80.0
  round: down
  status:
    changes: false
    default_rules:
      flag_coverage_not_uploaded_behavior: include

    patch: true
    project: true
github_checks:
  annotations: true

With all of these, when uploading the file we obtain an "unusable report". Fix the call so a usable report is uploaded to codecov.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant