weecology / retriever

Quickly download, clean up, and install public datasets into a database management system
http://data-retriever.org
Other
306 stars 134 forks source link

Update codecov to action stage in workflows #1632

Closed henrykironde closed 2 years ago

henrykironde commented 2 years ago

codecov.io

    - name: Run pytest
        run: |
        pytest -v -k "not test_geojson2csv  and not test_mysql_integration" --cov=retriever --cov-report=xml
        flake8 --ignore=E501,W503,E402,F401,F403,E722,F841,W504 retriever --max-line-length=90 2>&1
        yapf -d --recursive ./retriever/ --style=.style.yapf 2>&1
    - name: Upload coverage to Codecov
      uses: codecov/codecov-action@v1
      with:
        # token: ${{ secrets.CODECOV_TOKEN }} not required for public project
        file: ./coverage.xml
Nageshbansal commented 2 years ago

@henrykironde , removed the file codecov.yml and added this action step

    - name: Upload coverage to Codecov
      uses: codecov/codecov-action@v1
      with:
        # token: ${{ secrets.CODECOV_TOKEN }} not required for public project
        file: ./coverage.xml

in python-package.yml that's all I have to do, right?

henrykironde commented 2 years ago

Thanks @Nageshbansal for contributing to this issue.