replace_landsurface is a Python utility to be used within ACCESS-NRI versions of the Regional Nesting Suites to replace specific land surface initial/boundary conditions.
For development/testing, it is recommended to install replace_landsurface as a development package within a micromamba/conda testing environment.
git clone git@github.com:ACCESS-NRI/replace_landsurface.git
Tip
In the following instructions micromamba can be replaced with conda.
cd replace_landsurface
micromamba env create -n replace_landsurface_dev --file .conda/env_dev.yml
micromamba activate replace_landsurface_dev
pip install --no-deps --no-build-isolation -e .
The test suite currently includes only integration tests.
To manually run the tests, from the replace_landsurface directory, you can:
- Activate your micromamba/conda testing environment
- Run the following command:
pytest -n 4
Tip
The -n 4 option is a pytest-xdist option to run the tests in parallel across 4 different workers.
Important
Integration tests are designed to be run on Gadi.
If you run tests on a local machine, the integration tests will be skipped.
To run the integration tests, membership of the zz93 and ob53 NCI projects is required.