Skip to content

Commit cb1d4de

Browse files
authored
Merge branch 'main' into patch-1
2 parents 4d97d97 + bd59111 commit cb1d4de

File tree

87 files changed

+6230
-3980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+6230
-3980
lines changed

.github/workflows/label_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
exit 1
2525
fi
2626
27-
RELEASE_LABELS=("release::enhancements" "release::bug_fixes" "release::ci_docs")
27+
RELEASE_LABELS=("release::enhancements" "release::bug_fixes" "release::ci_docs" "release::maintenance")
2828
PR_LABELS=$(jq -r '.pull_request.labels[].name' "$GITHUB_EVENT_PATH")
2929
NB_RELEASE_LABELS=0
3030

.github/workflows/linters.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
- feat/*
78
pull_request:
89
branches:
910
- main
11+
- feat/*
1012
merge_group:
1113
types: [checks_requested]
1214

.github/workflows/static_build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
- feat/*
78
pull_request:
89
branches:
910
- main
11+
- feat/*
1012
paths-ignore:
1113
- "docs/**"
1214
- "mamba/**"
@@ -75,7 +77,7 @@ jobs:
7577
# The build_locally.py script will test all Linux builds, which fails outside of linux-64
7678
- name: Build conda package (Linux emulated)
7779
if: ${{ matrix.platform == 'linux' && matrix.arch != '64' }}
78-
uses: uraimo/run-on-arch-action@v2
80+
uses: uraimo/run-on-arch-action@v3
7981
with:
8082
arch: ${{ matrix.arch }}
8183
distro: ubuntu_latest

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
- feat/*
78
pull_request:
89
branches:
910
- main
11+
- feat/*
1012
paths-ignore:
1113
- "docs/**"
1214
- "**.md"

.github/workflows/unix_impl.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
--preset mamba-unix-shared-${{ inputs.build_type }} \
4141
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
4242
-D CMAKE_C_COMPILER_LAUNCHER=sccache \
43+
-D MAMBA_WARNING_AS_ERROR=ON \
4344
-D BUILD_LIBMAMBAPY=OFF \
4445
-D ENABLE_MAMBA_ROOT_PREFIX_FALLBACK=OFF
4546
cmake --build build/ --parallel
@@ -107,7 +108,10 @@ jobs:
107108
python -m pip install --no-deps --no-build-isolation ./libmambapy
108109
- name: Run libmamba Python bindings tests
109110
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' || '' }}
111115
112116
mamba_integration_tests_unix:
113117
name: mamba integration tests
@@ -162,8 +166,10 @@ jobs:
162166
run: |
163167
export TEST_MAMBA_EXE=$(pwd)/build/micromamba/mamba
164168
unset CONDARC # Interferes with tests
169+
# Only rerun flaky tests on the `main` branch
165170
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' || '' }}
167173
168174
verify_pkg_tests:
169175
name: mamba-content-trust tests

.github/workflows/windows_impl.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ jobs:
116116
python -m pip install --no-deps --no-build-isolation ./libmambapy
117117
- name: Run libmamba Python bindings tests
118118
run: |
119-
python -m pytest libmambapy/tests/ ${{ runner.debug == 'true' && '-v' || '--exitfirst' }}
119+
# Only rerun flaky tests on the `main` branch
120+
python -m pytest libmambapy/tests/ ^
121+
${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }} ^
122+
${{ github.ref == 'refs/heads/main' && '--reruns 3' || '' }}
120123
121124
mamba_integration_tests_win:
122125
name: mamba integration tests
@@ -149,5 +152,7 @@ jobs:
149152
$env:TEST_MAMBA_EXE = Join-Path -Path $pwd -ChildPath 'local\bin\mamba.exe'
150153
$env:MAMBA_TEST_SHELL_TYPE='powershell'
151154
Remove-Item -Path "env:CONDARC"
155+
# Only rerun flaky tests on the `main` branch
152156
python -m pytest micromamba/tests/ `
153-
${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }}
157+
${{ runner.debug == 'true' && '-v --capture=tee-sys' || '--exitfirst' }} `
158+
${{ github.ref == 'refs/heads/main' && '--reruns 3' || '' }}

.markdownlint.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Default state for all rules
2+
default: true
3+
4+
# MD013/line-length - Line length
5+
MD013:
6+
# Number of characters
7+
line_length: 200
8+
9+
no-duplicate-heading: false

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ repos:
1919
- id: rst-backticks
2020
- id: rst-directive-colons
2121
- id: rst-inline-touching-normal
22+
- repo: https://github.com/DavidAnson/markdownlint-cli2
23+
rev: v0.17.1
24+
hooks:
25+
- id: markdownlint-cli2
26+
args: [--fix]
2227
- repo: https://github.com/asottile/pyupgrade
2328
rev: v3.19.1
2429
hooks:

.readthedocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
version: 2
22

3+
sphinx:
4+
# Path to Sphinx configuration file
5+
configuration: docs/source/conf.py
6+
37
build:
48
os: "ubuntu-22.04"
59
tools:

0 commit comments

Comments
 (0)