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.

35 lines
939 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. pip install js2py
  23. pytest --cov=./ --cov-report=xml
  24. - name: Upload coverage to Codecov
  25. uses: codecov/codecov-action@v1
  26. with:
  27. token: ${{ secrets.CODECOV_TOKEN }}
  28. files: ./coverage.xml
  29. flags: unittests
  30. env_vars: OS,PYTHON
  31. name: codecov-umbrella
  32. fail_ci_if_error: true
  33. path_to_write_report: ./coverage/codecov_report.txt
  34. verbose: true