Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3642bc2e authored by LEGRAND Jonathan's avatar LEGRAND Jonathan
Browse files

Update pytest commands to adjust coverage reporting

Revised `.gitlab-ci.yml` to streamline test execution. Enabled coverage reporting for the Linux job while explicitly disabling it in other jobs using `--no-cov`.
parent e9e3b6be
Branches
Tags
No related merge requests found
......@@ -243,7 +243,7 @@ ctest-linux:
- conda activate morpheme-build # activate `morpheme-build` env
- conda activate --stack $CI_PROJECT_NAME # activate target env, stacked on top of `morpheme-build`
- conda list # list conda packages in environment for debugging purposes
- pytest --junitxml=report.xml tst # run tests located in `tst/` & generate an XML report
- pytest # run tests located in `tst/` & generate a coverage report
artifacts:
when: always
reports:
......@@ -263,7 +263,7 @@ ctest-osx:
- conda activate morpheme-build # activate `morpheme-build` env
- conda activate --stack $CI_PROJECT_NAME # activate target env, stacked on top of `morpheme-build`
- conda list # list conda packages in environment for debugging purposes
- pytest tst # run tests located in `tst/` (XML coverage report is done in linux job)
- pytest --no-cov # run tests located in `tst/` (XML coverage report is done in linux job)
rules:
- when: always
......@@ -277,7 +277,7 @@ ctest-osx-arm64:
- conda activate morpheme-build # activate `morpheme-build` env
- conda activate --stack $CI_PROJECT_NAME # activate target env, stacked on top of `morpheme-build`
- conda list # list conda packages in environment for debugging purposes
- pytest tst # run tests located in `tst/` (XML coverage report is done in linux job)
- pytest --no-cov # run tests located in `tst/` (XML coverage report is done in linux job)
rules:
- when: always
......@@ -293,7 +293,7 @@ ctest-windows:
- conda activate morpheme-build # activate `morpheme-build` env
- conda activate -stack $CI_PROJECT_NAME # activate target env, stacked on top of `morpheme-build`
- conda list # list conda packages in environment for debugging purposes
- pytest tst # run tests located in `tst/` (XML coverage report is done in linux job)
- pytest --no-cov # run tests located in `tst/` (XML coverage report is done in linux job)
rules:
- when: always
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment