|
72 | 72 | - name: Minimize uv cache |
73 | 73 | run: uv cache prune --ci |
74 | 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 |
| 81 | + steps: |
| 82 | + - uses: actions/checkout@v4 |
| 83 | + - name: install Just |
| 84 | + uses: taiki-e/install-action@just |
| 85 | + - name: Install uv |
| 86 | + run: curl -LsSf https://astral.sh/uv/install.sh | sh |
| 87 | + - name: Set up Python ${{ matrix.python-version }} |
| 88 | + uses: actions/setup-python@v5 |
| 89 | + with: |
| 90 | + python-version: ${{ matrix.python-version }} |
| 91 | + - name: Restore uv cache |
| 92 | + uses: actions/cache@v4 |
| 93 | + with: |
| 94 | + path: ${{ env.UV_CACHE_DIR }} |
| 95 | + key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} |
| 96 | + restore-keys: | |
| 97 | + uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} |
| 98 | + uv-${{ runner.os }} |
| 99 | + - name: Install Dependencies |
| 100 | + run: just install |
| 101 | + - name: Test with pytest |
| 102 | + run: | |
| 103 | + sudo apt-get update && \ |
| 104 | + sudo apt-get install -y libnss3-tools build-essential gcc && \ |
| 105 | + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \ |
| 106 | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \ |
| 107 | + brew install mkcert && \ |
| 108 | + mkcert -install && \ |
| 109 | + mkcert -key-file meilisearch.key -cert-file meilisearch.crt localhost 127.0.0.1 ::1 && \ |
| 110 | + just test-parallel-ci-http2 |
| 111 | + - name: Upload coverage |
| 112 | + uses: codecov/codecov-action@v4 |
| 113 | + with: |
| 114 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 115 | + fail_ci_if_error: true |
| 116 | + - name: Minimize uv cache |
| 117 | + run: uv cache prune --ci |
| 118 | + |
75 | 119 | no-parallel-testing: |
76 | 120 | strategy: |
77 | 121 | fail-fast: false |
@@ -108,6 +152,51 @@ jobs: |
108 | 152 | - name: Minimize uv cache |
109 | 153 | run: uv cache prune --ci |
110 | 154 |
|
| 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 | + |
111 | 200 | docs: |
112 | 201 | runs-on: ubuntu-latest |
113 | 202 | steps: |
|
0 commit comments