diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6d657f1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +stages: +- test + +all_branch_test: + stage: test + tags: + - docker + image: python:3.9 + script: + - apt-get update ##[edited] + - apt-get install ffmpeg libsm6 libxext6 -y + - pip install cython + - pip install -r requirements-test.txt --no-cache-dir + - pip install codecov + - pytest --cov=rudalle tests/ + - bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN + except: + - tags diff --git a/README.md b/README.md index e4981b4..6ff6c31 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # ruDALL-E ### Generate images from texts +[![Apache license](https://img.shields.io/badge/License-Apache-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) +[![Coverage Status](https://codecov.io/gh/sberbank-ai/ru-dalle/branch/master/graphs/badge.svg)](https://codecov.io/gh/sberbank-ai/ru-dalle) +[![pipeline](https://gitlab.com/shonenkov/ru-dalle/badges/develop/pipeline.svg)](https://codecov.io/gh/sberbank-ai/ru-dalle) +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/sberbank-ai/ru-dalle/master.svg)](https://results.pre-commit.ci/latest/github/sberbank-ai/ru-dalle/master) ``` pip install rudalle==0.0.1rc4 @@ -10,7 +14,6 @@ pip install rudalle==0.0.1rc4 ### Minimal Example: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1wGE-046et27oHvNlBNPH07qrEQNE04PQ?usp=sharing) - [![Kaggle](https://kaggle.com/static/images/open-in-kaggle.svg)](https://www.kaggle.com/shonenkov/rudalle-example-generation) ### generation by ruDALLE: