This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

43 行
1.2 KiB

  1. name: Compute coverage and 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: Download submodules
  15. run: |
  16. git submodule update --init --recursive
  17. git submodule sync -q
  18. git submodule update --init
  19. - name: Setup Python
  20. uses: actions/setup-python@master
  21. with:
  22. python-version: 3.7
  23. - name: Install dependencies
  24. run: |
  25. python -m pip install --upgrade pip
  26. pip install -r test-requirements.txt
  27. - name: Generate coverage report
  28. run: |
  29. pip install pytest
  30. pip install pytest-cov
  31. pytest --cov=./ --cov-report=xml
  32. - name: Upload coverage to Codecov
  33. uses: codecov/codecov-action@v1
  34. with:
  35. token: ${{ secrets.CODECOV_TOKEN }}
  36. files: ./coverage.xml
  37. flags: unittests
  38. env_vars: OS,PYTHON
  39. name: codecov-umbrella
  40. fail_ci_if_error: true
  41. path_to_write_report: ./coverage/codecov_report.txt
  42. verbose: true