pythonpackage.yml 720 B

12345678910111213141516171819202122232425262728
  1. name: Python package
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. os: [ubuntu-latest, macos-latest, windows-latest]
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Set up Python ${{ matrix.python-version }}
  12. uses: actions/setup-python@v2
  13. with:
  14. python-version: ${{ matrix.python-version }}
  15. - name: Install dependencies
  16. run: |
  17. python -m pip install --upgrade pip
  18. pip install -U pip coverage codecov flake8 fastimport
  19. - name: Style checks
  20. run: |
  21. make style PYTHON=python
  22. - name: Coverage test suite run
  23. run: |
  24. python -m coverage run -p -m unittest dulwich.tests.test_suite