build.yml 838 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Build
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. name: Python ${{ matrix.python-version }} CI
  7. strategy:
  8. fail-fast: false
  9. matrix:
  10. python-version: ['2.7', '3.5', '3.6', '3.7', '3.8']
  11. steps:
  12. - name: Clone repository
  13. uses: actions/checkout@v2
  14. - name: Setup Python ${{ matrix.python-version }}
  15. uses: actions/setup-python@v2
  16. with:
  17. python-version: ${{ matrix.python-version }}
  18. - name: Install dependencies
  19. run: |
  20. python -m pip install --upgrade pip setuptools
  21. python -m pip install --upgrade tox tox-gh-actions
  22. - name: Tox tests
  23. run: |
  24. tox -v
  25. - name: Codecov
  26. uses: codecov/codecov-action@v1
  27. with:
  28. name: Python ${{ matrix.python-version }}