codecov.yml 730 B

1234567891011121314151617181920212223242526272829303132
  1. name: Codecov
  2. on:
  3. push:
  4. branches:
  5. - main
  6. jobs:
  7. pytest:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout repository.
  11. uses: actions/checkout@v4
  12. - name: Setup Python.
  13. uses: actions/setup-python@v4
  14. with:
  15. python-version: 3.8
  16. - name: Install dependencies.
  17. run: pip install -r requirements-dev.txt
  18. - name: Test with pytest and generate coverage.
  19. run: pytest -v --cov=yandex_music
  20. - name: Submit coverage.
  21. if: github.ref == 'refs/heads/main' && github.repository == 'MarshalX/yandex-music-api'
  22. env:
  23. CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
  24. run: codecov -F github -t $CODECOV_TOKEN --name "GHA"