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

Publish test coverage in CI #45

Open
uniqueg opened this issue Feb 9, 2023 · 0 comments
Open

Publish test coverage in CI #45

uniqueg opened this issue Feb 9, 2023 · 0 comments
Milestone

Comments

@uniqueg
Copy link
Collaborator

uniqueg commented Feb 9, 2023

@kellrott: Server-side this already seems to be set up for Coveralls. However, when migrating our services and tools to GitHub Actions from Travis CI, we had a hard time getting Coveralls to work and migrated our services to Codecov instead. I could try again to make it work with Coveralls if you like (it's a little while ago) - but otherwise Codecov has worked really nice for us.

In that case, you would have to set this up on the Codecov server though, @kellrott, and set a repository secret. And then replace the last task in the CI workflow in the 0.5.0 release branch with the following two (you may of course need to change the name of the secret if you did not use CODECOV_TOKEN):

      - name: Run unit tests
        run: |
          coverage run --source tes -m pytest -W ignore::DeprecationWarning
          coverage xml
      - name: Submit coverage
        uses: codecov/codecov-action@v3
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          files: ./coverage.xml
          fail_ci_if_error: true
          verbose: true

Either way, please let me know.

@kellrott kellrott added this to the 0.5.0 milestone Feb 10, 2023
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

2 participants