python.yml 763 B

12345678910111213141516171819202122232425262728293031
  1. on:
  2. push:
  3. pull_request:
  4. schedule:
  5. - cron: '0 20 * * 5'
  6. jobs:
  7. build:
  8. runs-on: ubuntu-18.04
  9. strategy:
  10. matrix:
  11. python-version:
  12. # 3.4 not available
  13. - 3.5
  14. - 3.6
  15. - 3.7
  16. - 3.8
  17. steps:
  18. - uses: actions/checkout@v1
  19. - uses: actions/setup-python@v1
  20. with:
  21. python-version: ${{ matrix.python-version }}
  22. - run: pip install --upgrade pipenv>=2018.10.9
  23. - run: pipenv sync --dev
  24. - run: if python3 -c 'import sys; sys.exit(sys.version_info < (3, 8))'; then
  25. pipenv install 'astroid>=2.3.0';
  26. fi
  27. - run: pipenv graph
  28. - run: pipenv run pylint free_disk
  29. - run: pipenv run pylint --disable=missing-requirement tests/*
  30. - run: pipenv run pytest