pythonpackage.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Python package
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ${{ matrix.os }}
  6. strategy:
  7. matrix:
  8. os: [ubuntu-latest, macos-latest, windows-latest]
  9. python-version: [3.5, 3.6, 3.7, 3.8, pypy3]
  10. fail-fast: false
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Set up Python ${{ matrix.python-version }}
  14. uses: actions/setup-python@v2
  15. with:
  16. python-version: ${{ matrix.python-version }}
  17. - name: Install dependencies
  18. run: |
  19. python -m pip install --upgrade pip
  20. pip install -U pip coverage codecov flake8 fastimport
  21. - name: Install mypy
  22. run: |
  23. pip install -U mypy
  24. if: "matrix.python-version != 'pypy3'"
  25. - name: Style checks
  26. run: |
  27. python -m flake8
  28. - name: Typing checks
  29. run: |
  30. python -m mypy dulwich
  31. if: "matrix.python-version != 'pypy3'"
  32. - name: Build
  33. run: |
  34. python setup.py build_ext -i
  35. - name: Coverage test suite run
  36. run: |
  37. python -m coverage run -p -m unittest dulwich.tests.test_suite
  38. - name: Upload coverage details
  39. run: |
  40. codecov