pythonpackage.yml 928 B

123456789101112131415161718192021222324252627282930313233343536
  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.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 mypy
  21. - name: Style checks
  22. run: |
  23. python -m flake8
  24. - name: Typing checks
  25. run: |
  26. python -m mypy dulwich
  27. - name: Build
  28. run: |
  29. python setup.py build_ext -i
  30. - name: Coverage test suite run
  31. run: |
  32. python -m coverage run -p -m unittest dulwich.tests.test_suite