1
0

.gitlab-ci.yml 479 B

1234567891011121314151617181920
  1. image: python:3-alpine
  2. # Also run CI for Merge requests
  3. workflow:
  4. rules:
  5. - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
  6. - if: $CI_COMMIT_TAG
  7. - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
  8. before_script:
  9. # - python --version ; pip --version # For debugging
  10. - pip install flake8 -qq
  11. - pip install mypy -qq
  12. - pip install types-PyYAML types-psycopg2 -qq
  13. test:
  14. script:
  15. # ignore long lines
  16. - flake8 --ignore=E501 cleanmedia
  17. - mypy cleanmedia