CI: Add testrmsenv.sh script for testing against RMS environment - #92
Conversation
f7dda4e to
bdd943d
Compare
GibranAlfa
left a comment
There was a problem hiding this comment.
i think we should not use uv here, as like we did in other testrmsenv.sh in https://github.com/equinor/xtgeo/blob/main/ci/testrmsenv.sh for example,, uv might not resolve the correct python from RMS env
Done |
| copy_test_files () { | ||
| echo "Copy xtgeoviz test files to $CI_TEST_ROOT..." | ||
| mkdir -p $CI_TEST_ROOT | ||
| cp -r $PROJECT_ROOT/tests $CI_TEST_ROOT |
There was a problem hiding this comment.
The xtgeoviz tests still resolve testdata through ../xtgeo-testdata in several places, and in the rms-sys workflow pytest runs from $CI_ROOT/xtgeoviz_test_root while the cached testdata lives at $XTGEO_TESTDATA_PATH. We can add a symlink from $CI_ROOT/xtgeo-testdata to $XTGEO_TESTDATA_PATH before running pytest. The --testdatapath argument is accepted, but it is not used by all xtgeoviz tests.
| cp -r $PROJECT_ROOT/tests $CI_TEST_ROOT | |
| ln -s $XTGEO_TESTDATA_PATH $CI_ROOT/xtgeo-testdata | |
| cp -r $PROJECT_ROOT/tests $CI_TEST_ROOT |
Resolves #361
https://github.com/equinor/rms-sys/issues/361
Added
ci/testrmsenv.shto enable validation of newly built RMS environments by running its unit tests against them.Checklist
--cov=src/ --cov-report term-missing)