77 pull_request :
88env :
99 UV_CACHE_DIR : /tmp/.uv-cache
10- PYTHON_VERSION : " 3.10 "
10+ PYTHON_VERSION : " 3.9 "
1111jobs :
1212 linting :
1313 runs-on : ubuntu-latest
4242 matrix :
4343 python-version : ["3.9", "3.10", "3.11", "3.12", "3.13.0-beta.4"]
4444 runs-on : ubuntu-latest
45+ steps :
46+ - uses : actions/checkout@v4
47+ - name : install Just
48+ uses : taiki-e/install-action@just
49+ - name : Install uv
50+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
51+ - name : Set up Python ${{ matrix.python-version }}
52+ uses : actions/setup-python@v5
53+ with :
54+ python-version : ${{ matrix.python-version }}
55+ - name : Restore uv cache
56+ uses : actions/cache@v4
57+ with :
58+ path : ${{ env.UV_CACHE_DIR }}
59+ key : uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
60+ restore-keys : |
61+ uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
62+ uv-${{ runner.os }}
63+ - name : Install Dependencies
64+ run : just install
65+ - name : Test with pytest
66+ run : just test-parallel-ci
67+ - name : Upload coverage
68+ uses : codecov/codecov-action@v4
69+ with :
70+ token : ${{ secrets.CODECOV_TOKEN }}
71+ fail_ci_if_error : true
72+ - name : Minimize uv cache
73+ run : uv cache prune --ci
74+
75+ parallel-testing-http2 :
76+ strategy :
77+ fail-fast : false
78+ matrix :
79+ python-version : [ "3.9", "3.10", "3.11", "3.12", "3.13.0-beta.4" ]
80+ runs-on : ubuntu-latest
4581 steps :
4682 - uses : actions/checkout@v4
4783 - name : install Just
71107 brew install mkcert && \
72108 mkcert -install && \
73109 mkcert -key-file meilisearch.key -cert-file meilisearch.crt localhost 127.0.0.1 ::1 && \
74- just test-parallel-ci
110+ just test-parallel-ci-http2
75111 - name : Upload coverage
76112 uses : codecov/codecov-action@v4
77113 with :
@@ -107,15 +143,7 @@ jobs:
107143 - name : Install Dependencies
108144 run : just install
109145 - name : Test with pytest
110- run : |
111- sudo apt-get update && \
112- sudo apt-get install -y libnss3-tools build-essential gcc && \
113- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
114- eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \
115- brew install mkcert && \
116- mkcert -install && \
117- mkcert -key-file meilisearch.key -cert-file meilisearch.crt localhost 127.0.0.1 ::1 && \
118- just test-no-parallel-ci
146+ run : just test-no-parallel-ci
119147 - name : Upload coverage
120148 uses : codecov/codecov-action@v4
121149 with :
@@ -124,6 +152,51 @@ jobs:
124152 - name : Minimize uv cache
125153 run : uv cache prune --ci
126154
155+ no-parallel-testing-http2 :
156+ strategy :
157+ fail-fast : false
158+ matrix :
159+ python-version : ["3.9", "3.10", "3.11", "3.12", "3.13.0-beta.4"]
160+ runs-on : ubuntu-latest
161+ steps :
162+ - uses : actions/checkout@v4
163+ - name : install Just
164+ uses : taiki-e/install-action@just
165+ - name : Install uv
166+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
167+ - name : Set up Python ${{ matrix.python-version }}
168+ uses : actions/setup-python@v5
169+ with :
170+ python-version : ${{ matrix.python-version }}
171+ - name : Restore uv cache
172+ uses : actions/cache@v4
173+ with :
174+ path : ${{ env.UV_CACHE_DIR }}
175+ key : uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
176+ restore-keys : |
177+ uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
178+ uv-${{ runner.os }}
179+ - name : Install Dependencies
180+ run : just install
181+ - name : Test with pytest
182+ run : |
183+ sudo apt-get update && \
184+ sudo apt-get install -y libnss3-tools build-essential gcc && \
185+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
186+ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \
187+ brew install mkcert && \
188+ mkcert -install && \
189+ mkcert -key-file meilisearch.key -cert-file meilisearch.crt localhost 127.0.0.1 ::1 && \
190+ just test-no-parallel-ci-http2
191+ - name : Upload coverage
192+ uses : codecov/codecov-action@v4
193+ with :
194+ token : ${{ secrets.CODECOV_TOKEN }}
195+ fail_ci_if_error : true
196+ - name : Minimize uv cache
197+ run : uv cache prune --ci
198+
199+
127200 docs :
128201 runs-on : ubuntu-latest
129202 steps :
0 commit comments