Skip to content
Snippets Groups Projects
Select Git revision
  • de0eb743e2a25d4760837025cd06f88c4ed544be
  • main default protected
  • bump-boto3
  • bump-mdutils
  • bump-mlflow-skinny
  • bump-torchvision
  • bump-torchaudio
  • bump-torch
  • bump-numpy
  • bump-matplotlib
  • bump-wandb
  • bump-nltk
  • bump-pandas
  • bump-PyYAML
  • bump-lxml
  • bump-scipy
  • bump-tensorboard
  • bump-mkdocs-material
  • bump-mkdocstrings-python
  • bump-albumentations
  • support-nested
  • 0.2.2rc4
  • 0.2.2rc3
  • 0.2.2rc2
  • 0.2.2rc1
  • attention-exp
  • 0.2.2b2
  • 0.2.2b1
  • 0.2.2a2
  • 0.2.2a1
  • 0.2.1
  • 0.2.0
  • 0.2.0rc12
  • 0.2.0rc11
  • 0.2.0rc10
  • 0.2.0rc9
  • 0.2.0rc8
  • 0.2.0rc7
  • 0.2.0rc6
  • 0.2.0rc5
  • 0.2.0rc4
41 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 2.63 KiB
    stages:
      - test
      - build
      - deploy
    
    variables:
      # Submodule clone
      GIT_SUBMODULE_STRATEGY: recursive
    
    lint:
      image: python:3.10
      stage: test
    
      cache:
        paths:
          - .cache/pre-commit
    
      except:
        - schedules
    
      variables:
        PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
        PRE_COMMIT_HOME: "$CI_PROJECT_DIR/.cache/pre-commit"
    
      before_script:
        - pip install pre-commit
    
      script:
        - pre-commit run -a
    
    test:
      image: python:3.10
    
      stage: test
      cache:
        paths:
          - .cache/pip
    
      variables:
        PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
    
      before_script:
        - pip install tox
    
        # Add system deps for opencv
        - apt-get update -q
        - apt-get install -q -y libgl1
    
      except:
        - schedules
    
      script:
        - tox -- -v
    
    docker-build:
      stage: build
      image: docker:19.03.1
      services:
        - docker:dind
      variables:
        DOCKER_DRIVER: overlay2
        DOCKER_HOST: tcp://docker:2375/
    
      except:
        - schedules
    
      script:
        - ci/build.sh
    
    # Make sure docs still build correctly