Contributing

Run the unit tests

To run the unit tests, you must follow the steps below:

Create a virtual environment.

python -m venv .venv
source .venv/bin/activate

Install the dependencies.

pip install -r requirements-dev.txt

Have a running IRIS instance.

Here you can choose between:

  • Local installation of IRIS
  • Docker installation of IRIS

Local installation of IRIS

Install IRIS locally.
Set up the IRIS instance.

Then, symbolically this git to the IRIS pyhton directory:

ln -s <your_git_dir>/src/iop $IRISINSTALLDIR/python/iop
Run the unit tests.
pytest

Docker installation of IRIS

No prerequisites are needed. Just run the following command:

docker build -t pytest-iris -f dockerfile-ci .
docker run -i --rm pytest-iris