test.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: test
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. branches:
  8. - master
  9. workflow_dispatch:
  10. jobs:
  11. prospector:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v2
  15. - uses: jpetrucciani/prospector-check@master
  16. mypy:
  17. runs-on: ubuntu-latest
  18. steps:
  19. - uses: actions/checkout@v2
  20. - uses: jpetrucciani/mypy-check@master
  21. with:
  22. path: 'bucketstore.py'
  23. black:
  24. runs-on: ubuntu-latest
  25. steps:
  26. - uses: actions/checkout@v2
  27. - uses: jpetrucciani/black-check@master
  28. with:
  29. path: 'bucketstore.py'
  30. tests:
  31. runs-on: ubuntu-latest
  32. needs: [mypy, prospector, black]
  33. strategy:
  34. matrix:
  35. python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
  36. name: python ${{ matrix.python-version }} tests
  37. steps:
  38. - uses: actions/checkout@v2
  39. - name: setup python
  40. uses: actions/setup-python@v2
  41. with:
  42. python-version: ${{ matrix.python-version }}
  43. architecture: x64
  44. - name: install requirements
  45. run: |
  46. pip install -r requirements.txt
  47. pip install -r requirements.dev.txt
  48. - name: run Tox
  49. run: tox -e py