Path: blob/main/dev-docs/configuring-test-deps.md
6437 views
Installing and configuring the main tools
Julia
Install
juliaupInstall version to use e.g
juliaup add 1.10Configure
testsfolder to use a specific versionThis way when calling
juliaintestsfolder it will always be Julia 1.10 version
Python
Install
uvAbout uv: https://docs.astral.sh/uv/
uvwill handle the python versions and virtual environments based on the.python-versionwe have intests/folder.To set the version to use to
This
uv runanduv syncwill create the right virtual environment and use it.
R
Install
rigInstall R version e.g
rig add 4.3.2For now, no way to just configure a folder to use a specific version, so you need to set the version globally
NPM
Install
npmneeded for meca
Installing the dependencies in each languages packages
From
testsfolder, runconfigure-test-env.shorconfigure-test-env.ps1scripts to restore dependencies for each tools
Adding some tests dependencies
Python
Use
uv addto add the deps topyproject.toml, install related dependencies in the virtual environment and lock the versions inuv.lock. Example:
R
Add the dependencies in
DESCRIPTIONfileRun
renv::install(<package>)to install the dependenciesRun
renv::snapshot()to lock the versions inrenv.lock
Julia
Run Julia in the
tests/project and add the dependencies Example:then in Julia console