Path: blob/main/dev-docs/configuring-test-deps.md
3544 views
Installing and configuring the main tools
Julia
Install
juliaup
Install version to use e.g
juliaup add 1.10
Configure
tests
folder to use a specific versionThis way when calling
julia
intests
folder it will always be Julia 1.10 version
Python
Install
uv
About uv: https://docs.astral.sh/uv/
uv
will handle the python versions and virtual environments based on the.python-version
we have intests/
folder.To set the version to use to
This
uv run
anduv sync
will create the right virtual environment and use it.
R
Install
rig
Install R version e.g
rig add 4.3.2
For now, no way to just configure a folder to use a specific version, so you need to set the version globally
NPM
Install
npm
needed for meca
Installing the dependencies in each languages packages
From
tests
folder, runconfigure-test-env.sh
orconfigure-test-env.ps1
scripts to restore dependencies for each tools
Adding some tests dependencies
Python
Use
uv add
to add the deps topyproject.toml
, install related dependencies in the virtual environment and lock the versions inuv.lock
. Example:
R
Add the dependencies in
DESCRIPTION
fileRun
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