python.yml 828 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.5
  13. - 3.6
  14. - 3.7
  15. - 3.8
  16. steps:
  17. - uses: actions/checkout@v1
  18. - uses: actions/setup-python@v1
  19. with:
  20. python-version: ${{ matrix.python-version }}
  21. - run: pip install --upgrade pipenv>=2018.10.9
  22. - run: pipenv sync --dev
  23. # ModuleNotFoundError: No module named 'importlib_metadata'
  24. - run: if python3 -c 'import sys; sys.exit(sys.version_info < (3, 8))'; then
  25. pipenv graph;
  26. pipenv install --dev importlib-metadata;
  27. fi
  28. - run: pipenv graph
  29. - run: pipenv run pylint ical2vdir
  30. - run: pipenv run pytest --cov=ical2vdir --cov-report=term-missing --cov-fail-under=100