Unverified Commit d9d035c0 authored by Andreas Theodosiou's avatar Andreas Theodosiou 馃惂

馃懛 Add CI build config

* Use tox for running the tests and setting up the environment
parent 27db7e27
Pipeline #44386 failed with stage
in 0 seconds
# This file is a template, and might need editing before it works on your project.
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
- venv/
before_script:
- python -V # Print out python version for debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
test:
script:
- pip install tox # you can also use tox
- tox
run:
script:
- python -m pip install --upgrade build
- python -m build
artifacts:
paths:
- dist/*.whl
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py39
[testenv]
deps =
commands =
python -m unittest discover -s ./tests/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment