python.yml 883 B

12345678910111213141516171819202122232425262728293031323334
  1. # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
  2. # shown in badge
  3. # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/configuring-a-workflow#adding-a-workflow-status-badge-to-your-repository
  4. name: tests
  5. on:
  6. push:
  7. pull_request:
  8. schedule:
  9. - cron: '0 20 * * 5'
  10. jobs:
  11. tests:
  12. runs-on: ubuntu-18.04
  13. strategy:
  14. matrix:
  15. python-version:
  16. - 3.5
  17. - 3.6
  18. - 3.7
  19. - 3.8
  20. fail-fast: false
  21. steps:
  22. - uses: actions/checkout@v1
  23. - uses: actions/setup-python@v1
  24. with:
  25. python-version: ${{ matrix.python-version }}
  26. - run: pip install --upgrade pipenv==2020.6.2
  27. - run: pipenv install --python "$PYTHON_VERSION" --deploy --dev
  28. env:
  29. PYTHON_VERSION: ${{ matrix.python-version }}
  30. - run: pipenv graph
  31. - run: pipenv run pytest