|
40 | 40 | --preset mamba-unix-shared-${{ inputs.build_type }} \ |
41 | 41 | -D CMAKE_CXX_COMPILER_LAUNCHER=sccache \ |
42 | 42 | -D CMAKE_C_COMPILER_LAUNCHER=sccache \ |
| 43 | + -D MAMBA_WARNING_AS_ERROR=ON \ |
43 | 44 | -D BUILD_LIBMAMBAPY=OFF \ |
44 | 45 | -D ENABLE_MAMBA_ROOT_PREFIX_FALLBACK=OFF |
45 | 46 | cmake --build build/ --parallel |
@@ -107,7 +108,10 @@ jobs: |
107 | 108 | python -m pip install --no-deps --no-build-isolation ./libmambapy |
108 | 109 | - name: Run libmamba Python bindings tests |
109 | 110 | run: | |
110 | | - python -m pytest libmambapy/tests/ ${{ runner.debug == 'true' && '-v' || '--exitfirst' }} |
| 111 | + # Only rerun flaky tests on the `main` branch |
| 112 | + python -m pytest libmambapy/tests/ \ |
| 113 | + ${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }} \ |
| 114 | + ${{ github.ref == 'refs/heads/main' && '--reruns 3' || '' }} |
111 | 115 |
|
112 | 116 | mamba_integration_tests_unix: |
113 | 117 | name: mamba integration tests |
@@ -162,8 +166,10 @@ jobs: |
162 | 166 | run: | |
163 | 167 | export TEST_MAMBA_EXE=$(pwd)/build/micromamba/mamba |
164 | 168 | unset CONDARC # Interferes with tests |
| 169 | + # Only rerun flaky tests on the `main` branch |
165 | 170 | python -m pytest micromamba/tests/ \ |
166 | | - ${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }} |
| 171 | + ${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }} \ |
| 172 | + ${{ github.ref == 'refs/heads/main' && '--reruns 3' || '' }} |
167 | 173 |
|
168 | 174 | verify_pkg_tests: |
169 | 175 | name: mamba-content-trust tests |
|
0 commit comments