|
| 1 | +name: e2e-cache freethread |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths-ignore: |
| 6 | + - '**.md' |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - main |
| 10 | + - releases/* |
| 11 | + paths-ignore: |
| 12 | + - '**.md' |
| 13 | + workflow_dispatch: |
| 14 | + |
| 15 | +permissions: |
| 16 | + contents: read |
| 17 | +jobs: |
| 18 | + python-pip-dependencies-caching: |
| 19 | + name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }}) |
| 20 | + runs-on: ${{ matrix.os }} |
| 21 | + strategy: |
| 22 | + fail-fast: false |
| 23 | + matrix: |
| 24 | + os: |
| 25 | + [ |
| 26 | + ubuntu-latest, |
| 27 | + ubuntu-22.04, |
| 28 | + ubuntu-24.04-arm, |
| 29 | + ubuntu-22.04-arm, |
| 30 | + windows-latest, |
| 31 | + macos-latest, |
| 32 | + macos-15-intel |
| 33 | + ] |
| 34 | + python-version: [3.13.0t, 3.13.1t, 3.13.2t] |
| 35 | + steps: |
| 36 | + - uses: actions/checkout@v6 |
| 37 | + - name: Setup Python |
| 38 | + uses: ./ |
| 39 | + with: |
| 40 | + python-version: ${{ matrix.python-version }} |
| 41 | + cache: 'pip' |
| 42 | + - name: Install dependencies |
| 43 | + run: pip install numpy pandas requests |
| 44 | + |
| 45 | + python-pipenv-dependencies-caching: |
| 46 | + name: Test pipenv (Python ${{ matrix.python-version}}, ${{ matrix.os }}) |
| 47 | + runs-on: ${{ matrix.os }} |
| 48 | + strategy: |
| 49 | + fail-fast: false |
| 50 | + matrix: |
| 51 | + os: |
| 52 | + [ |
| 53 | + ubuntu-latest, |
| 54 | + ubuntu-24.04-arm, |
| 55 | + ubuntu-22.04, |
| 56 | + ubuntu-22.04-arm, |
| 57 | + windows-latest, |
| 58 | + macos-latest, |
| 59 | + macos-15-intel |
| 60 | + ] |
| 61 | + python-version: [3.13.1t, 3.13.2t, 3.13.5t] |
| 62 | + steps: |
| 63 | + - uses: actions/checkout@v6 |
| 64 | + - name: Setup Python |
| 65 | + id: cache-pipenv |
| 66 | + uses: ./ |
| 67 | + with: |
| 68 | + python-version: ${{ matrix.python-version }} |
| 69 | + cache: 'pipenv' |
| 70 | + - name: Install pipenv |
| 71 | + run: python -m pip install --upgrade pip pipenv |
| 72 | + - name: Install dependencies on Linux/macOS |
| 73 | + if: runner.os != 'Windows' |
| 74 | + run: | |
| 75 | + export PIPENV_PYTHON=$(which python) |
| 76 | + pipenv install requests |
| 77 | + - name: Install dependencies on Windows |
| 78 | + if: runner.os == 'Windows' |
| 79 | + run: | |
| 80 | + # Remove existing virtualenv if any |
| 81 | + python -m pipenv --rm || echo "No existing env" |
| 82 | + # Create fresh env using current Python |
| 83 | + python -m pipenv install --python $(python -c "import sys; print(sys.executable)") requests |
| 84 | +
|
| 85 | + python-poetry-dependencies-caching: |
| 86 | + name: Test poetry (Python ${{ matrix.python-version}}, ${{ matrix.os }}) |
| 87 | + runs-on: ${{ matrix.os }} |
| 88 | + strategy: |
| 89 | + fail-fast: false |
| 90 | + matrix: |
| 91 | + os: |
| 92 | + [ |
| 93 | + ubuntu-latest, |
| 94 | + ubuntu-22.04, |
| 95 | + ubuntu-24.04-arm, |
| 96 | + ubuntu-22.04-arm, |
| 97 | + windows-latest, |
| 98 | + macos-latest, |
| 99 | + macos-15-intel |
| 100 | + ] |
| 101 | + python-version: [3.13.0, 3.13.1, 3.13.2] |
| 102 | + steps: |
| 103 | + - uses: actions/checkout@v6 |
| 104 | + - name: Install poetry |
| 105 | + run: pipx install poetry |
| 106 | + - name: Init pyproject.toml |
| 107 | + run: mv ./__tests__/data/pyproject.toml . |
| 108 | + - name: Setup Python |
| 109 | + uses: ./ |
| 110 | + with: |
| 111 | + python-version: ${{ matrix.python-version }} |
| 112 | + freethreaded: true |
| 113 | + cache: 'poetry' |
| 114 | + - name: Install dependencies |
| 115 | + run: poetry install --no-root |
| 116 | + |
| 117 | + python-pip-dependencies-caching-path: |
| 118 | + name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }}, caching path) |
| 119 | + runs-on: ${{ matrix.os }} |
| 120 | + strategy: |
| 121 | + fail-fast: false |
| 122 | + matrix: |
| 123 | + os: |
| 124 | + [ |
| 125 | + ubuntu-latest, |
| 126 | + ubuntu-22.04, |
| 127 | + ubuntu-24.04-arm, |
| 128 | + ubuntu-22.04-arm, |
| 129 | + windows-latest, |
| 130 | + macos-latest, |
| 131 | + macos-15-intel |
| 132 | + ] |
| 133 | + python-version: [3.13.0t, 3.13.1t, 3.13.2t] |
| 134 | + steps: |
| 135 | + - uses: actions/checkout@v6 |
| 136 | + - name: Setup Python |
| 137 | + uses: ./ |
| 138 | + with: |
| 139 | + python-version: ${{ matrix.python-version }} |
| 140 | + cache: 'pip' |
| 141 | + cache-dependency-path: __tests__/data/requirements.txt |
| 142 | + - name: Install dependencies |
| 143 | + run: pip install numpy pandas requests |
| 144 | + |
| 145 | + python-pipenv-dependencies-caching-path: |
| 146 | + name: Test pipenv (Python ${{ matrix.python-version}}, ${{ matrix.os }}, caching path) |
| 147 | + runs-on: ${{ matrix.os }} |
| 148 | + strategy: |
| 149 | + fail-fast: false |
| 150 | + matrix: |
| 151 | + os: |
| 152 | + [ |
| 153 | + ubuntu-latest, |
| 154 | + ubuntu-22.04, |
| 155 | + ubuntu-24.04-arm, |
| 156 | + ubuntu-22.04-arm, |
| 157 | + windows-latest, |
| 158 | + macos-latest, |
| 159 | + macos-15-intel |
| 160 | + ] |
| 161 | + python-version: [3.13.1t, 3.13.2t, 3.13.5t] |
| 162 | + steps: |
| 163 | + - uses: actions/checkout@v6 |
| 164 | + - name: Setup Python |
| 165 | + id: cache-pipenv |
| 166 | + uses: ./ |
| 167 | + with: |
| 168 | + python-version: ${{ matrix.python-version }} |
| 169 | + cache: 'pipenv' |
| 170 | + cache-dependency-path: '**/pipenv-requirements.txt' |
| 171 | + - name: Install pipenv |
| 172 | + run: python -m pip install --upgrade pip pipenv |
| 173 | + - name: Install dependencies on Linux/macOS |
| 174 | + if: runner.os != 'Windows' |
| 175 | + run: | |
| 176 | + export PIPENV_PYTHON=$(which python) |
| 177 | + pipenv install requests |
| 178 | + - name: Install dependencies on Windows |
| 179 | + if: runner.os == 'Windows' |
| 180 | + run: | |
| 181 | + # Remove existing virtualenv if any |
| 182 | + python -m pipenv --rm || echo "No existing env" |
| 183 | + # Create fresh env using current Python |
| 184 | + python -m pipenv install --python $(python -c "import sys; print(sys.executable)") requests |
| 185 | +
|
| 186 | + python-pip-dependencies-caching-with-pip-version: |
| 187 | + name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }}) |
| 188 | + runs-on: ${{ matrix.os }} |
| 189 | + strategy: |
| 190 | + fail-fast: false |
| 191 | + matrix: |
| 192 | + os: |
| 193 | + [ |
| 194 | + ubuntu-latest, |
| 195 | + ubuntu-22.04, |
| 196 | + ubuntu-24.04-arm, |
| 197 | + ubuntu-22.04-arm, |
| 198 | + windows-latest, |
| 199 | + macos-latest, |
| 200 | + macos-15-intel |
| 201 | + ] |
| 202 | + python-version: [3.13.0t, 3.13.1t, 3.13.2t] |
| 203 | + steps: |
| 204 | + - uses: actions/checkout@v6 |
| 205 | + - name: Setup Python |
| 206 | + uses: ./ |
| 207 | + with: |
| 208 | + python-version: ${{ matrix.python-version }} |
| 209 | + cache: 'pip' |
| 210 | + pip-version: '25.0.1' |
| 211 | + - name: Install dependencies |
| 212 | + run: pip install numpy pandas requests |
| 213 | + |
| 214 | + python-pip-dependencies-caching-path-with-pip-version: |
| 215 | + name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }}, caching path) |
| 216 | + runs-on: ${{ matrix.os }} |
| 217 | + strategy: |
| 218 | + fail-fast: false |
| 219 | + matrix: |
| 220 | + os: |
| 221 | + [ |
| 222 | + ubuntu-latest, |
| 223 | + ubuntu-22.04, |
| 224 | + ubuntu-24.04-arm, |
| 225 | + ubuntu-22.04-arm, |
| 226 | + windows-latest, |
| 227 | + macos-latest, |
| 228 | + macos-15-intel |
| 229 | + ] |
| 230 | + python-version: [3.13.0t, 3.13.1t, 3.13.2t] |
| 231 | + steps: |
| 232 | + - uses: actions/checkout@v6 |
| 233 | + - name: Setup Python |
| 234 | + uses: ./ |
| 235 | + with: |
| 236 | + python-version: ${{ matrix.python-version }} |
| 237 | + cache: 'pip' |
| 238 | + cache-dependency-path: __tests__/data/requirements.txt |
| 239 | + pip-version: '25.0.1' |
| 240 | + - name: Install dependencies |
| 241 | + run: pip install numpy pandas requests |
| 242 | + |
| 243 | + python-pip-dependencies-caching-with-pip-install: |
| 244 | + name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }}) |
| 245 | + runs-on: ${{ matrix.os }} |
| 246 | + strategy: |
| 247 | + fail-fast: false |
| 248 | + matrix: |
| 249 | + os: |
| 250 | + [ |
| 251 | + ubuntu-latest, |
| 252 | + ubuntu-22.04, |
| 253 | + ubuntu-24.04-arm, |
| 254 | + ubuntu-22.04-arm, |
| 255 | + windows-latest, |
| 256 | + macos-latest, |
| 257 | + macos-15-intel |
| 258 | + ] |
| 259 | + python-version: [3.13.0t, 3.13.1t, 3.13.2t] |
| 260 | + steps: |
| 261 | + - uses: actions/checkout@v6 |
| 262 | + - name: Setup Python |
| 263 | + uses: ./ |
| 264 | + with: |
| 265 | + python-version: ${{ matrix.python-version }} |
| 266 | + cache: 'pip' |
| 267 | + pip-install: numpy pandas requests |
| 268 | + |
| 269 | + python-pip-dependencies-caching-path-with-pip-install: |
| 270 | + name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }}, caching path) |
| 271 | + runs-on: ${{ matrix.os }} |
| 272 | + strategy: |
| 273 | + fail-fast: false |
| 274 | + matrix: |
| 275 | + os: |
| 276 | + [ |
| 277 | + ubuntu-latest, |
| 278 | + ubuntu-22.04, |
| 279 | + ubuntu-24.04-arm, |
| 280 | + ubuntu-22.04-arm, |
| 281 | + windows-latest, |
| 282 | + macos-latest, |
| 283 | + macos-15-intel |
| 284 | + ] |
| 285 | + python-version: [3.13.0t, 3.13.1t, 3.13.2t] |
| 286 | + steps: |
| 287 | + - uses: actions/checkout@v6 |
| 288 | + - name: Setup Python |
| 289 | + uses: ./ |
| 290 | + with: |
| 291 | + python-version: ${{ matrix.python-version }} |
| 292 | + cache: 'pip' |
| 293 | + cache-dependency-path: __tests__/data/requirements.txt |
| 294 | + pip-install: numpy pandas requests |
0 commit comments