GeriLife / companionship

Promoting companionship and well-being for everyone.
European Union Public License 1.2
7 stars 18 forks source link

Add test-coverage report to continuous integration pipeline #62

Closed brylie closed 1 year ago

brylie commented 2 years ago

We are currently using CodeClimate for quality review in our pull requests. CodeClimate can monitor test coverage if we configure our project correctly.

Task

Example configuration

Something similar to the following may be all that is needed to enable test reporting in our project.

coverage:
    needs: [ test ]
    name: coverage
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - uses: actions/setup-python@master
      with:
        python-version: '3.10'
    - run: poetry install
    - run: coverage run -m pytest