python.yml 960 B

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