python.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # show in badge
  2. # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/configuring-a-workflow#adding-a-workflow-status-badge-to-your-repository
  3. name: tests
  4. on:
  5. push:
  6. pull_request:
  7. schedule:
  8. - cron: '0 20 * * 5'
  9. jobs:
  10. build:
  11. runs-on: ubuntu-18.04
  12. strategy:
  13. matrix:
  14. python-version:
  15. - 3.5
  16. - 3.6
  17. - 3.7
  18. - 3.8
  19. steps:
  20. - uses: actions/checkout@v1
  21. - uses: actions/setup-python@v1
  22. with:
  23. python-version: ${{ matrix.python-version }}
  24. - run: pip install --upgrade pipenv>=2018.10.9
  25. - run: pipenv sync --dev
  26. # ModuleNotFoundError: No module named 'importlib_metadata'
  27. - run: if python3 -c 'import sys; sys.exit(sys.version_info < (3, 8))'; then
  28. pipenv graph;
  29. pipenv install --dev importlib-metadata;
  30. fi
  31. - run: pipenv graph
  32. - run: pipenv run pylint ical2vdir
  33. - run: pipenv run pytest --cov=ical2vdir --cov-report=term-missing --cov-fail-under=100
  34. - run: pipenv run black --check .