pythonpackage.yml 830 B

1234567891011121314151617181920212223242526272829303132
  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. steps:
  11. - uses: actions/checkout@v2
  12. - name: Set up Python ${{ matrix.python-version }}
  13. uses: actions/setup-python@v2
  14. with:
  15. python-version: ${{ matrix.python-version }}
  16. - name: Install dependencies
  17. run: |
  18. python -m pip install --upgrade pip
  19. pip install -U pip coverage codecov flake8 fastimport
  20. - name: Style checks
  21. run: |
  22. python -m flake8
  23. - name: Build
  24. run: |
  25. python setup.py build_ext -i
  26. - name: Coverage test suite run
  27. run: |
  28. python -m coverage run -p -m unittest dulwich.tests.test_suite