This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
912 B

  1. name: Push to Codecov
  2. on: [push]
  3. jobs:
  4. run:
  5. runs-on: ${{ matrix.os }}
  6. strategy:
  7. matrix:
  8. os: [ubuntu-latest, macos-latest, windows-latest]
  9. env:
  10. OS: ${{ matrix.os }}
  11. PYTHON: '3.7'
  12. steps:
  13. - uses: actions/checkout@master
  14. - name: Setup Python
  15. uses: actions/setup-python@master
  16. with:
  17. python-version: 3.7
  18. - name: Generate coverage report
  19. run: |
  20. pip install pytest
  21. pip install pytest-cov
  22. pytest --cov=./ --cov-report=xml
  23. - name: Upload coverage to Codecov
  24. uses: codecov/codecov-action@v1
  25. with:
  26. token: ${{ secrets.CODECOV_TOKEN }}
  27. files: ./coverage.xml
  28. flags: unittests
  29. env_vars: OS,PYTHON
  30. name: codecov-umbrella
  31. fail_ci_if_error: true
  32. path_to_write_report: ./coverage/codecov_report.txt
  33. verbose: true