run-tests.yml 737 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Run tests
  2. on:
  3. push:
  4. pull_request:
  5. branches-ignore: [ master ]
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"]
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Set up Python ${{ matrix.python-version }}
  16. uses: actions/setup-python@v2
  17. with:
  18. python-version: ${{ matrix.python-version }}
  19. - name: Install dependencies
  20. run: |
  21. pip install codecov
  22. python scripts/ci/install
  23. - name: Run tests
  24. run: |
  25. python scripts/ci/run-tests --with-cov
  26. - name: codecov
  27. run: |
  28. rm tests/coverage.xml
  29. mv tests/.coverage ./
  30. codecov