Skip to content
Snippets Groups Projects
Select Git revision
  • 594df8c2da97f4c357fa4a64d5b90020a88ac119
  • main default protected
  • introduce_citation_cff
  • v0.5.0
  • v0.4.0
  • v0.3.0
  • v0.2.1
  • v0.2.0
  • v0.1.0
9 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 1.19 KiB
    # This file is a template, and might need editing before it works on your project.
    # To contribute improvements to CI/CD templates, please follow the Development guide at:
    # https://docs.gitlab.com/ee/development/cicd/templates.html
    # This specific template is located at:
    # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
    
    # Official language image. Look for the different tagged releases at:
    # https://hub.docker.com/r/library/python/tags/
    image: python:3.10
    
    variables:
      HTTP_PROXY: "http://webproxy:8080"
      HTTPS_PROXY: "http://webproxy:8080"
      http_proxy: "http://webproxy:8080"
      https_proxy: "http://webproxy:8080"
    
    before_script:
      - pip install --upgrade pip virtualenv
      - virtualenv venv
      - source venv/bin/activate
      - pip install --upgrade pip
    
    flake8:
      rules:
        - if: $CI_COMMIT_TAG == null
          changes:
            - "**/*.py"
      script:
        - pip install --upgrade flake8 Flake8-pyproject
        - flake8 .
    
    black:
      rules:
        - if: $CI_COMMIT_TAG == null
          changes:
            - "**/*.py"
      script:
        - pip install --upgrade black[jupyter]
        - black --check .
    
    cffconvert:
      script:
        - pip install --upgrade cffconvert
        - cffconvert --validate